/* ═══════════════════════════════════════════════════════════════════════
   aurea-chests.css — les 3 coffres AUREA : INDIGO (mystère) · AMÉTHYSTE (magie) · POLARIS (prestige).
   Réutilise les variables d'akasha.page.css et les classes .ac-* d'aurea-collections.css.
   Sobre : aucun compte à rebours, aucune roue, aucune fausse urgence.
   ═══════════════════════════════════════════════════════════════════════ */

.ach { max-width: 1100px; margin: 0 auto; }
.ach-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.ach-top h3 { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 3px; font-size: 14px; color: var(--gold2, #edd48c); text-transform: uppercase; margin: 0 0 4px; }
.ach-top p { margin: 0; font-size: 13px; color: var(--text3, #ac9ccb); max-width: 520px; line-height: 1.55; }
.ach-bal { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(237,212,140,.3); border-radius: 12px; background: rgba(237,212,140,.05); }
.ach-bal span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text3, #ac9ccb); }
.ach-bal b { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; color: #fff3cf; font-size: 16px; }

.ach-event { margin: 0 0 14px; padding: 10px 14px; border: 1px solid rgba(255,214,120,.5); border-radius: 12px; background: linear-gradient(120deg, rgba(255,214,120,.1), rgba(122,69,192,.12));
  display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.ach-event b { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 2px; color: #ffe9a8; }
.ach-event span { color: var(--text2, #d6c9ee); }
.ach-event.sm { margin: 0 0 8px; padding: 8px 10px; font-size: 12px; }

.ach-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 16px; padding: 7px 10px; border: 1px dashed rgba(255,255,255,.14); border-radius: 12px; }
.ach-active-t { font-size: 9.5px; letter-spacing: 2.5px; color: var(--text3, #ac9ccb); margin-right: 4px; }
.ach-act-chip { display: inline-flex; flex-direction: column; padding: 3px 9px; border-radius: 9px; border: 1px solid var(--border, #372b6e); background: rgba(255,255,255,.03); line-height: 1.25; }
.ach-act-chip b { font-size: 11.5px; font-weight: 600; color: #e8e0f8; } .ach-act-chip i { font-size: 10px; font-style: normal; color: var(--text3, #ac9ccb); }
.ach-act-chip.r-rare { border-color: #2a6ac0aa; } .ach-act-chip.r-mythique { border-color: #c0341aaa; } .ach-act-chip.r-legendaire { border-color: #c07a1aaa; } .ach-act-chip.r-polaristar { border-color: #fff9; }


/* ── SVG des coffres : animations d'attente (lentes, CSS transform/opacity uniquement) ── */
.ch-svg { width: 100%; height: 100%; overflow: visible; display: block; transition: transform .5s ease; }
.ach-card:hover .ch-svg { transform: translateY(-5px); }
.ch-halo { transform-origin: center; transform-box: fill-box; animation: chBreathe 5.5s ease-in-out infinite; transition: opacity .5s; }
.ch-p { opacity: 0; animation: chP 7s linear infinite; }
.ch-light, .ch-beam { opacity: 0; transition: opacity .8s; }
.ch-lid { transition: transform .9s cubic-bezier(.2,.85,.25,1.04); }
.tier1 .ch-lid { transform-origin: 130px 112px; } .tier2 .ch-lid { transform-origin: 122px 106px; } .tier3 .ch-lid { transform-origin: 150px 118px; transition-duration: 1.9s; }
.ch-sig { transform-box: fill-box; transform-origin: center; animation: chSig 3.6s ease-in-out infinite; }
/* INDIGO : respiration lumineuse, lumière entre couvercle et base */
.ch-seam { opacity: .22; animation: chSeam 4.4s ease-in-out infinite; }
.ach-card.tier1:hover .ch-halo { opacity: 1; transform: scale(1.1); } .ach-card.tier1:hover .ch-seam { opacity: .75; animation: none; }
/* AMÉTHYSTE : cristaux qui pulsent, lumière qui circule dans les gravures */
.ch-cr { animation: chCry 4.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.ch-sg { stroke-opacity: .65; animation: chFlow 9s linear infinite; }
.ch-gem { animation: chSig 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ch-conv { opacity: 0; } .ch-p.dia { animation-duration: 8s; }
.ach-card.tier2:hover .ch-cr { animation: none; filter: brightness(1.55); } .ach-card.tier2:hover .ch-p { animation-duration: 3.6s; } .ach-card.tier2:hover .ch-halo { opacity: 1; }
/* POLARIS : anneaux orbitaux très lents, noyau qui pulse, constellation qui scintille */
.ch-ring { animation: chFlow 36s linear infinite; } .ch-ring.r2 { animation-direction: reverse; animation-duration: 52s; }
.ch-orb { transform-origin: 0 0; animation: chOrb 52s linear infinite; } .ch-orb.r2 { animation-duration: 76s; animation-direction: reverse; }
.ch-core { transform-box: fill-box; transform-origin: center; animation: chCore 3.4s ease-in-out infinite; }
.ch-tw { animation: chTw 3.8s ease-in-out infinite; }
.ch-const { opacity: .5; transition: opacity .7s; }
.ch-gl { opacity: .5; animation: chGl 10s linear infinite; } .ch-rays { opacity: .75; }
.ach-card.tier3:hover .ch-const { opacity: 1; } .ach-card.tier3:hover .ch-ring { animation-duration: 14s; } .ach-card.tier3:hover .ch-ring.r2 { animation-duration: 20s; }
.ach-card.tier3:hover .ch-halo { opacity: 1; transform: scale(1.08); } .ach-card.tier3:hover .ch-rays { opacity: 1; } .ach-card.tier3:hover .ch-gl { opacity: .95; }
@keyframes chFloat { 50% { transform: translateY(-8px); } }
@keyframes chBreathe { 50% { opacity: .55; transform: scale(1.05); } }
@keyframes chP { 0% { opacity: 0; transform: translateY(10px); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes chSig { 50% { opacity: .62; } }   /* opacité seule : pas de filtre recalculé à chaque image (téléphone) */
@keyframes chSeam { 50% { opacity: .65; } }
@keyframes chCry { 50% { opacity: .78; } }
@keyframes chFlow { to { stroke-dashoffset: -60; } }
@keyframes chOrb { to { transform: rotate(360deg); } }
@keyframes chCore { 50% { transform: scale(1.2); opacity: .85; } }
@keyframes chTw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes chGl { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes achTw { 50% { opacity: .25; } }
@keyframes chFlowIn { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }

/* ═══ CINÉMATIQUE D'OUVERTURE : une séquence par niveau (classes d'étape cumulatives sur .ach-chest) ═══ */
.ach-ov { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; overflow-y: auto; opacity: 0; transition: opacity .45s ease, background .9s ease;
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--gl) 22%, #0b0824), #03020d 72%); }
.ach-ov.on { opacity: 1; }
.ach-ov.dim { background: radial-gradient(ellipse at 50% 42%, #0a0618, #010006 78%); }       /* POLARIS : l'environnement s'éteint */
.ach-skip { position: absolute; top: 12px; right: 14px; z-index: 5; font-size: 11px; letter-spacing: 2px; color: var(--text3, #ac9ccb); background: none; border: 1px solid var(--border, #372b6e); border-radius: 99px; padding: 5px 12px; cursor: pointer; }
.ach-stage { position: relative; width: min(84vw, 360px, 50vh); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.ach-ov.tier3 .ach-stage { width: min(94vw, 460px, 58vh); aspect-ratio: 300 / 250; }
.ach-ov.revealing .ach-stage { width: min(52vw, 190px); transition: width 1.2s cubic-bezier(.2,.8,.2,1); margin-bottom: 0; } .ach-ov.tier3.revealing .ach-stage { width: min(62vw, 250px); }
.ach-chest { width: 100%; height: 100%; opacity: 0; transform: scale(.6); transition: opacity .8s, transform .8s; }
.ach-chest.s-appear { opacity: 1; transform: scale(1); }
.ach-chest .ch-svg { animation: none; transition: none; } .ach-chest .ch-p { animation-duration: 3s; }
.ach-chest.s-float .ch-svg { animation: chFloat 2.2s ease-in-out infinite; }
.ach-chest .ch-cr { animation: none; filter: brightness(.78); transition: filter .5s; transition-delay: var(--d, 0s); }
/* INDIGO : symbole → vibration → lumière aux jointures → ouverture */
.ach-chest.s-sym .ch-sig { animation: none; filter: brightness(2.2) drop-shadow(0 0 7px var(--gl)); } .ach-chest.s-sym .ch-halo { opacity: 1; transform: scale(1.12); }
.ach-chest.s-shake .ch-svg { animation: achShake .12s linear infinite; }
.ach-chest.s-seam .ch-seam { animation: none; opacity: 1; } .ach-chest.s-seam .ch-svg { animation: achShake .07s linear infinite; filter: brightness(1.15); }
/* AMÉTHYSTE : cristaux un par un → sceaux → énergie vers le centre → ouverture */
.ach-chest.s-cry .ch-cr { filter: brightness(2) saturate(1.2); } .ach-chest.s-cry .ch-halo { opacity: 1; }
.ach-chest.s-sig .ch-sg { stroke-opacity: 1; animation-duration: 1.2s; filter: drop-shadow(0 0 3px var(--gl)); } .ach-chest.s-sig .ch-svg { animation: achShake .12s linear infinite; }
.ach-chest.s-conv .ch-conv { opacity: 1; animation: chFlowIn .9s linear infinite; } .ach-chest.s-conv .ch-gem, .ach-chest.s-conv .ch-sig { animation: none; filter: brightness(2.4) drop-shadow(0 0 8px var(--gl)); }
/* POLARIS : constellation → anneaux → noyau blanc → lignes d'or → ouverture lente */
.ach-chest.s-const .ch-const { opacity: 1; } .ach-chest.s-const .ch-tw { animation-duration: 1.4s; }
.ach-chest.s-rings .ch-ring { animation-duration: 5s; } .ach-chest.s-rings .ch-orb { animation-duration: 9s; } .ach-chest.s-rings .ch-halo { opacity: 1; transform: scale(1.1); }
.ach-chest.s-core .ch-core { animation: none; transform: scale(1.9); filter: brightness(1.8); } .ach-chest.s-core .ch-sig { animation: none; filter: brightness(3) drop-shadow(0 0 10px #fff); }
.ach-chest.s-lines .ch-gl { animation-duration: 1.6s; opacity: 1; stroke-width: 2.6; } .ach-chest.s-lines .ch-rays { opacity: 1; }
/* ouverture (commune) */
.ach-chest.s-open .ch-lid { transform: translateY(-30px) rotate(-13deg); } .ach-chest .tier1 .ch-lid { transition-duration: 1.1s; } .ach-chest .tier2 .ch-lid { transition-duration: 1.3s; } .ach-chest.s-open .ch-beam, .ach-chest.s-open .ch-light { opacity: 1; }
.ach-chest.s-open .ch-svg { animation: none; }
@keyframes achShake { 0% { transform: translate(0,0); } 25% { transform: translate(-.7px,.4px); } 50% { transform: translate(.6px,-.5px); } 75% { transform: translate(-.4px,-.4px); } 100% { transform: translate(.4px,.6px); } }   /* micro-tension, pas de secousse */
.ach-say { position: absolute; bottom: -40px; width: 100%; text-align: center; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 3px; font-size: 12px; color: var(--gold2, #edd48c); min-height: 1.4em; }
.ach-ov.revealing .ach-say { display: none; }
.ach-flash { position: absolute; inset: -60%; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255,255,255,.85) 0, color-mix(in srgb, var(--gl) 70%, transparent) 16%, transparent 58%); }
.ach-ov.burst .ach-flash { animation: achBurst 1.5s cubic-bezier(.2,.7,.3,1) forwards; } .ach-ov.tier2.burst .ach-flash { animation-duration: 1.8s; } .ach-ov.tier3.burst .ach-flash { animation-duration: 2.4s; }
@keyframes achBurst { 0% { opacity: 0; transform: scale(.2); } 35% { opacity: .62; } 100% { opacity: 0; transform: scale(1.35); } }   /* éclat contrôlé : jamais de flash blanc plein écran */

/* lumière de révélation selon la rareté la plus haute obtenue */
.ach-ov.fx-commun .ach-flash { --gl: #b8c0dc; }
.ach-ov.fx-rare .ach-flash { --gl: #6ab0ff; } .ach-ov.fx-superrare .ach-flash { --gl: #4ae09a; }
.ach-ov.fx-mythique, .ach-ov.fx-legendaire { animation: achDistort .9s ease-out; }
.ach-ov.fx-mythique .ach-flash { --gl: #ff6a3a; } .ach-ov.fx-legendaire .ach-flash { --gl: #ffb84a; }
.ach-ov.fx-mythique::after, .ach-ov.fx-legendaire::after, .ach-ov.fx-primordiale::after, .ach-ov.fx-polaristar::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; animation: achStars 2.4s ease-out forwards;
  background: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 85% 30%, #ffe9b8 50%, transparent 52%), radial-gradient(1.6px 1.6px at 25% 78%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 70% 70%, #d9c4ff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 50% 10%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 92% 88%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 6% 60%, #ffe9b8 50%, transparent 52%); }
.ach-ov.fx-primordiale .ach-flash { --gl: #c8a0ff; } .ach-ov.fx-primordiale { animation: achDistort 1.1s ease-out; }
.ach-ov.fx-polaristar .ach-flash { background: radial-gradient(circle, #fff 0, #fff 18%, #ffe9a8 34%, rgba(122,69,192,.5) 52%, transparent 66%); }
.ach-ov.fx-polaristar { animation: achPolaris 1.5s ease-out; }
.ach-ov.fx-polaristar .ach-stage::before { content: ''; position: absolute; inset: -30%; border-radius: 50%; pointer-events: none; opacity: 0; animation: achRing 2.2s ease-out forwards;
  background: conic-gradient(from 0deg, #ff3b3b, #ff9d3b, #f3ff3b, #3bff57, #3bd4ff, #6a3bff, #ff3bd0, #ff3b3b); -webkit-mask: radial-gradient(circle, transparent 46%, #000 48%, #000 52%, transparent 54%); mask: radial-gradient(circle, transparent 46%, #000 48%, #000 52%, transparent 54%); }
@keyframes achDistort { 0% { filter: none; } 30% { filter: saturate(1.25) brightness(1.08); } 100% { filter: none; } }
@keyframes achPolaris { 0% { filter: brightness(1); } 18% { filter: brightness(1.45) saturate(.85); } 100% { filter: brightness(1); } }
@keyframes achStars { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: .35; } }
@keyframes achRing { 0% { opacity: 0; transform: scale(.3) rotate(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5) rotate(120deg); } }

@media (prefers-reduced-motion: reduce) {
  .ch-halo, .ch-p, .ch-seam, .ch-sig, .ch-cr, .ch-sg, .ch-gem, .ch-ring, .ch-orb, .ch-core, .ch-tw, .ch-gl, .ach-art-in { animation: none !important; }
  .ch-lid, .ch-svg, .ach-chest, .ach-card { transition: none !important; }
}

/* révélation progressive des lots */
.ach-rev { width: min(100%, 460px); text-align: left; }
.ach-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ach-card-r { --rc: #9098b0; display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--rc) 12%, #0b0824), #0a0720); box-shadow: 0 0 0 transparent; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s, transform .5s, box-shadow .8s; }
.ach-card-r.in { opacity: 1; transform: none; box-shadow: 0 0 22px color-mix(in srgb, var(--rc) 40%, transparent); }
.ach-card-r.r-polaristar.in { box-shadow: 0 0 36px #ffffff80, 0 0 60px #8a6aff55; }
.ach-card-r b { display: block; font-size: 14.5px; color: #fff; margin-bottom: 3px; } .ach-card-r small { display: block; font-size: 11px; color: var(--text3, #ac9ccb); }
.ach-colink { margin-top: 6px; font-size: 11.5px; color: var(--text2, #d6c9ee); line-height: 1.5; } .ach-colink .ac-btn { margin-top: 5px; }
.ach-rb { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.ach-card-r .ac-thumb { width: 46px; height: 62px; }

/* ── chances ── */
.ach-oddsl { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; text-align: left; }
.ach-oddsl li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ach-o-l { min-width: 82px; color: var(--rc); font-weight: 600; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.ach-o-b { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; display: block; } .ach-o-b u { display: block; height: 100%; background: var(--rc); border-radius: 99px; }
.ach-oddsl b { min-width: 52px; text-align: right; } .ach-oddsl em { font-size: 10.5px; color: var(--text3, #ac9ccb); font-style: normal; }
.ach-oddsl.d li { justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,.07); padding: 3px 0; }
.ach-det { margin: 6px 0 8px; text-align: left; font-size: 12px; } .ach-det summary { cursor: pointer; color: var(--gold2, #edd48c); margin-bottom: 6px; }
.ach-fr-cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ach-boost.r-polaristar { border-color: #ffffff77; } .ach-boost.r-legendaire { border-color: #c07a1a99; } .ach-boost.r-mythique { border-color: #c0341a99; }

@media (prefers-reduced-motion: reduce) {
  .ch-float, .ch-halo, .ch-p, .ch-seal, .ch-ring, .ch-crystals, .ach-card.tier3::before, .ach-ov, .ach-ov .ach-flash, .ach-ov .ach-stage::before, .ach-ov::after { animation: none !important; }
  .ach-chest, .ach-card-r, .ch-lid { transition: none !important; } .ach-card-r { opacity: 1; transform: none; }
}

/* ═══ FRAGMENTS DE CARTE : 4 coins + le cœur au centre (pavage exact de la carte) ═══ */
.pz { position: relative; aspect-ratio: 3 / 4; width: 100%; border-radius: 9px; overflow: hidden; background: #0b0820; --rc: #9098b0; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.pz.ar-rare { --rc: #6ab0ff; } .pz.ar-superrare { --rc: #4ae09a; } .pz.ar-mythique { --rc: #ff6a3a; } .pz.ar-legendaire { --rc: #ffb84a; } .pz.ar-primordiale { --rc: #c8a0ff; } .pz.ar-polaristar { --rc: #ffffff; }
.pz-p { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #1a1238; filter: brightness(.14) saturate(.2); transition: filter .6s, transform .9s cubic-bezier(.2,.9,.3,1.1); }
.pz.noimg .pz-p { background-image: linear-gradient(135deg, color-mix(in srgb, var(--rc) 40%, #1a1238), #120c2a); }
.pz-p.on { filter: none; }
.pz-p.hi { filter: none; z-index: 2; animation: pzHi 1.1s ease-in-out infinite; }
.pz-p.p5.on, .pz-p.p5.hi { filter: brightness(1.12) saturate(1.15); }
.pz-seams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; fill: none; stroke: rgba(255,255,255,.4); stroke-width: .7; vector-effect: non-scaling-stroke; }
.pz-seams * { vector-effect: non-scaling-stroke; }
.pz-heart { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; font-size: 1.5em; color: color-mix(in srgb, var(--rc) 75%, #fff); opacity: .55; text-shadow: 0 0 8px var(--rc); font-style: normal; animation: pzBeat 1.8s ease-in-out infinite; }
.pz.sm { width: 64px; } .pz.sm .pz-heart { font-size: 14px; }
@keyframes pzHi { 50% { filter: brightness(1.7) saturate(1.3); } }
@keyframes pzBeat { 50% { transform: translate(-50%, -50%) scale(1.25); opacity: .9; } }
.ach-pzwrap { flex: 0 0 64px; }
.ach-frag-t { display: block; font-size: 12px; color: var(--text2, #d6c9ee); margin-bottom: 3px; }
.ach-frag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.ach-frag { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--border, #372b6e); border-radius: 14px; background: rgba(255,255,255,.025); }
.ach-frag.complete { border-color: rgba(237,212,140,.6); box-shadow: 0 0 22px rgba(237,212,140,.14); }
.ach-frag .pz { width: 76px; flex: 0 0 76px; align-self: flex-start; }
.ach-frag-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ach-frag-b small { font-size: 11px; color: var(--text3, #ac9ccb); } .ach-frag-n { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 15px; color: var(--gold2, #edd48c); }

/* assemblage animé : les 5 pièces se rejoignent */
.ach-stage.asm { width: min(60vw, 250px, 44vh); aspect-ratio: 3 / 4; }
.ach-ov.assembling .ach-stage .pz.big { width: 100%; box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 50%, transparent); }
.pz.apart .pz-p { transition: none; }
.pz.apart .p1 { transform: translate(-70px, -70px) rotate(-12deg); } .pz.apart .p2 { transform: translate(70px, -70px) rotate(12deg); }
.pz.apart .p3 { transform: translate(-70px, 70px) rotate(10deg); } .pz.apart .p4 { transform: translate(70px, 70px) rotate(-10deg); } .pz.apart .p5 { transform: scale(.2); opacity: 0; }
.pz.big .pz-p { filter: none; }
.ach-asm-t { text-align: center; margin-top: 12px; } .ach-asm-t h2 { font-family: 'Cinzel Decorative', 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 5px; font-size: 22px; color: #fff3cf; margin: 0 0 8px; text-shadow: 0 0 22px rgba(255,214,120,.5); }
.ach-asm-t b { font-size: 16px; color: #fff; }
@media (prefers-reduced-motion: reduce) { .pz-heart, .pz-p.hi { animation: none !important; } .pz-p { transition: none !important; } }

/* ═══ REFONTE « RELIQUAIRES CÉLESTES » (2026-10-07) : volume, matière, lumière, présence ═══
   Les coffres sont dessinés en perspective 3/4 (aurea-chests.js). Ici : mise en scène de la carte
   (projecteur, profondeur, sol), reflet qui balaie le métal, cercle d'énergie au sol, hiérarchie I → II → III. */
.ch-glint { opacity: 0; animation: chGlint 8s ease-in-out infinite; }
.tier2 .ch-glint { animation-delay: 2.6s; } .tier3 .ch-glint { animation-duration: 6.5s; animation-delay: 1.2s; }
@keyframes chGlint { 0%, 58% { transform: translateX(0); opacity: 0; } 62% { opacity: 1; } 84% { opacity: .9; } 90%, 100% { transform: translateX(400px); opacity: 0; } }
.ch-flr { animation: chFlow 14s linear infinite; }
.ach-card:hover .ch-glint { animation-duration: 3.2s; animation-delay: 0s; }

@media (prefers-reduced-motion: reduce) { .ch-glint, .ch-flr { animation: none !important; } .ch-glint { opacity: 0; } }


/* ═══ RITUEL D'OUVERTURE (2026-10-07) : éveil → montée d'énergie → ouverture noble → révélation → apaisement ═══
   Le luxe vient de la lumière et du rythme : transform + opacity uniquement, aucun flash violent.
   Phases posées sur .ach-ov par aurea-chests.js : p-wake, p-charge, p-peak, p-open, p-rest. */
.ach-ov { justify-content: safe center; }
.ach-sky { position: absolute; inset: -10%; pointer-events: none; opacity: 0; transition: opacity 2s;
  background: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 82% 14%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 64% 72%, color-mix(in srgb, var(--gl) 70%, #fff) 50%, transparent 52%),
    radial-gradient(1px 1px at 30% 84%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 92% 58%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 6% 52%, color-mix(in srgb, var(--gl) 70%, #fff) 50%, transparent 52%),
    radial-gradient(1px 1px at 46% 8%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 54% 46%, #fff 50%, transparent 52%); animation: achSky 70s linear infinite; }
.ach-ov.on .ach-sky { opacity: .55; } .ach-ov.p-rest .ach-sky { opacity: .8; }
@keyframes achSky { to { transform: translate(-4%, 3%); } }

/* aura : le coffre s'éveille, respire, puis bat plus vite à l'approche de l'ouverture */
.ach-aura { position: absolute; inset: 4%; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.8);
  background: radial-gradient(circle, color-mix(in srgb, var(--gl) 55%, transparent) 0, color-mix(in srgb, var(--gl) 18%, transparent) 42%, transparent 68%); transition: opacity 1.2s, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.ach-ov.p-wake .ach-aura { opacity: .45; transform: scale(.95); }
.ach-ov.p-charge .ach-aura { opacity: .7; animation: achPulse 1.6s ease-in-out infinite; }
.ach-ov.p-peak .ach-aura { opacity: .9; animation: achPulse .85s ease-in-out infinite; }
.ach-ov.p-open .ach-aura { opacity: 1; transform: scale(1.3); animation: none; }
.ach-ov.p-rest .ach-aura { opacity: .4; transform: scale(1.15); transition-duration: 3.5s; }
@keyframes achPulse { 50% { transform: scale(1.08); opacity: 1; } }

/* cercle d'énergie au sol : apparaît à la montée d'énergie, tourne, s'emballe, puis s'apaise */
.ach-rune { position: absolute; left: 50%; bottom: -34%; width: 96%; aspect-ratio: 1; pointer-events: none; color: var(--gl); opacity: 0;
  transform: translateX(-50%) perspective(520px) rotateX(76deg) scale(.7); transition: opacity 1s, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.ach-rune svg { width: 100%; height: 100%; display: block; animation: achRune 24s linear infinite; }
.ach-ov.tier3 .ach-rune { bottom: -30%; }
.ach-ov.p-charge .ach-rune { opacity: .45; transform: translateX(-50%) perspective(520px) rotateX(76deg) scale(.95); }
.ach-ov.p-peak .ach-rune { opacity: .9; } .ach-ov.p-peak .ach-rune svg { animation-duration: 6s; }
.ach-ov.p-open .ach-rune { opacity: 1; transform: translateX(-50%) perspective(520px) rotateX(76deg) scale(1.12); }
.ach-ov.p-rest .ach-rune { opacity: .25; transition-duration: 3s; } .ach-ov.p-rest .ach-rune svg { animation-duration: 40s; }
@keyframes achRune { to { transform: rotate(360deg); } }

/* rayons qui s'échappent du cœur du coffre */
.ach-rays { position: absolute; left: 50%; top: 40%; width: 180%; aspect-ratio: 1; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6);
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--gl) 55%, transparent) 0 1.4deg, transparent 1.4deg 11deg);
  -webkit-mask: radial-gradient(circle, #000 8%, rgba(0,0,0,.5) 30%, transparent 62%); mask: radial-gradient(circle, #000 8%, rgba(0,0,0,.5) 30%, transparent 62%);
  transition: opacity 1.4s, transform 1.8s cubic-bezier(.2,.8,.2,1); }
.ach-ov.tier3 .ach-rays { background: repeating-conic-gradient(from 0deg, rgba(255,243,196,.6) 0 1.2deg, transparent 1.2deg 7deg, rgba(201,164,255,.35) 7deg 8deg, transparent 8deg 13deg); }
.ach-ov.p-open .ach-rays { opacity: .9; transform: translate(-50%, -50%) scale(1); animation: achRays 60s linear infinite; }
.ach-ov.p-rest .ach-rays { opacity: .3; transition-duration: 4s; }
@keyframes achRays { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* intérieur du coffre : il s'embrase à l'ouverture */
.ch-in { transition: filter 1.2s; } .ach-chest.s-open .ch-in { filter: brightness(1.25); }

/* particules : gerbe à l'ouverture, puis poussières astrales en suspension */
.ach-motes { position: absolute; inset: 0; pointer-events: none; }
.ach-motes i { position: absolute; left: var(--l); top: 44%; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 30%, var(--gl) 60%, transparent 72%); box-shadow: 0 0 6px var(--gl); }
.ach-motes i.mb { animation: achMoteB 2.2s cubic-bezier(.15,.7,.3,1) var(--d) forwards; }
.ach-motes i.md { top: 36%; animation: achMoteD 7s ease-in-out var(--d) infinite; }
.ach-ov.tier3 .ach-motes i { background: radial-gradient(circle, #fff 0 30%, #ffe9a8 60%, transparent 72%); box-shadow: 0 0 7px #ffe9a8; }
@keyframes achMoteB { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--h) * -1)) scale(.25); } }
@keyframes achMoteD { 0% { opacity: 0; transform: translate(0, 10px); } 30% { opacity: .8; } 100% { opacity: 0; transform: translate(calc(var(--x) * .3), calc(var(--h) * -1)); } }

/* révélation : la récompense principale s'élève, entourée de rayons à la couleur de sa rareté */
.ach-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: -6px auto 16px; padding: 10px 12px 4px;
  opacity: 0; transform: translateY(46px) scale(.72); transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.16,.84,.3,1); }
.ach-hero.in { opacity: 1; transform: none; }
.ach-hero-rays { position: absolute; left: 50%; top: 64px; width: 280px; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 60%, transparent) 0 1.6deg, transparent 1.6deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 64%); mask: radial-gradient(circle, #000 10%, transparent 64%); animation: achRays 44s linear infinite; }
.ach-hero::before { content: ''; position: absolute; left: 50%; top: 64px; width: 190px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--rc) 45%, transparent), transparent 66%); }
.ach-hero-art { position: relative; animation: achHover 4.5s ease-in-out infinite; }
.ach-hero-art .ac-thumb { width: 92px; height: 124px; box-shadow: 0 0 30px color-mix(in srgb, var(--rc) 55%, transparent), 0 14px 30px #000a; }
.ach-hero-art .ac-thumb span { font-size: 42px; }
.ach-hero-art .pz { width: 96px; box-shadow: 0 0 30px color-mix(in srgb, var(--rc) 55%, transparent); }
.ach-hero-t { position: relative; display: flex; flex-direction: column; gap: 3px; }
.ach-hero-r { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 75%, #fff); }
.ach-hero.in .ach-hero-r { animation: achLetters 1.6s cubic-bezier(.2,.8,.2,1) both; }
.ach-hero-t b { font-family: 'Cinzel Decorative', 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 19px; letter-spacing: 1.5px; color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--rc) 60%, transparent); }
.ach-hero-t small { font-size: 12px; color: var(--text3, #ac9ccb); }
@keyframes achHover { 50% { transform: translateY(-6px); } }
@keyframes achLetters { from { letter-spacing: 14px; opacity: 0; } to { letter-spacing: 5px; opacity: 1; } }
/* hiérarchie : un lot commun reste sobre, un lot rare et au-delà rayonne davantage */
.ach-hero.r-commun .ach-hero-rays { opacity: .22; } .ach-hero.r-rare .ach-hero-rays, .ach-hero.r-superrare .ach-hero-rays { opacity: .45; }
.ach-hero.r-mythique .ach-hero-rays, .ach-hero.r-legendaire .ach-hero-rays, .ach-hero.r-primordiale .ach-hero-rays { opacity: .7; }
.ach-hero.r-polaristar .ach-hero-rays { opacity: .85; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.7) 0 1.4deg, transparent 1.4deg 9deg, rgba(255,233,168,.5) 9deg 10.4deg, transparent 10.4deg 14deg); }
.ach-card-r.is-hero { border-width: 1.5px; }
.ach-ov.skipped * { transition-duration: .2s !important; }

@media (prefers-reduced-motion: reduce) {
  .ach-sky, .ach-rune svg, .ach-rays, .ach-hero-rays, .ach-hero-art, .ach-aura, .ach-hero.in .ach-hero-r { animation: none !important; }
  .ach-motes { display: none; }
  .ach-hero, .ach-aura, .ach-rune, .ach-rays { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   REFONTE « RELIQUAIRES » (2026-10-17) — les 3 cartes en 5 zones :
   A niveau (cartouche gravé) · B reliquaire · C nom + valeur STARDUST · D récit, trésors, spectre des raretés · E actions.
   Prestige par la composition, les matières et la typographie : aucun emoji, aucune pastille.
   INDIGO    : saphir, argent céleste, constellations gravées, halo bleu doux.
   AMÉTHYSTE : violet profond, cristaux translucides, pulsation lente.
   POLARIS   : or solaire, ivoire, double cadre, couronne-astrolabe et sceau POLARISTAR.
   Performance (AKASHA a déjà clignoté sur Android) : aucun backdrop-filter, aucun flou animé ;
   seules l'opacité et transform s'animent ; les cartes hors écran sont mises en pause (.ach-idle).
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
.ach { --ach-ink: #05060F; --ach-night: #0B1030; --ach-vio: #7B4FD6; --ach-gold: #E8C36A; --ach-cyan: #3FE0D0; --ach-ivory: #F3EEE4; }
.ach-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ach-gly { width: 1em; height: 1em; vertical-align: -.14em; display: inline-block; }
.ach-mini-art { width: 150px; margin: 0 auto 8px; }

/* grille : une colonne (téléphone, tablette), trois colonnes comparables (ordinateur) ; 6 rangées partagées (A, B, C, D récit+trésors, spectre, E) */
.ach-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 480px; margin: 0 auto 22px; }
@media (min-width: 900px) {
  .ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 20px; align-items: stretch; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .ach-grid { grid-template-rows: repeat(6, auto); }
    .ach-grid > .ach-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }   /* > : passe devant le display: flex de .ach-card */
  }
}

/* la carte : un écrin sombre, cadre de métal, double filet intérieur, halo de l'identité */
.ach-card { --g: #4f74ff; --metal: #c9d3ff; --c1: #101a52; --c2: #080d2e;
  position: relative; display: flex; flex-direction: column; text-align: center; padding: 20px 20px 24px; border-radius: 18px; isolation: isolate; overflow: hidden;
  color: var(--ach-ivory); background: linear-gradient(172deg, var(--c1), var(--c2) 58%, var(--ach-ink));
  border: 1px solid color-mix(in srgb, var(--metal) 40%, transparent);
  box-shadow: 0 18px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .45s ease; }
.ach-card::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75; transition: opacity .45s ease;
  background: radial-gradient(ellipse 78% 40% at 50% 25%, color-mix(in srgb, var(--g) 32%, transparent), transparent 72%); }
.ach-card::after { content: ''; position: absolute; inset: 7px; z-index: -1; pointer-events: none; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--metal) 15%, transparent); transition: border-color .45s ease; }
.ach-card.tier1 { --g: #4f74ff; --metal: #c9d3ff; --c1: #101a52; --c2: #080d2e; }
.ach-card.tier2 { --g: #9b63f0; --metal: #d6c2ff; --c1: #26104c; --c2: #120828; border-color: color-mix(in srgb, var(--metal) 46%, transparent);
  box-shadow: 0 18px 46px rgba(0,0,0,.58), 0 0 30px rgba(123,79,214,.14), inset 0 1px 0 rgba(255,255,255,.08); }
.ach-card.tier2::before { animation: achAmPulse 7s ease-in-out infinite; }
.ach-card.tier3 { --g: #E8C36A; --metal: #E8C36A; border: 1px solid transparent;
  background: linear-gradient(172deg, #2a2142, #0e1030 58%, var(--ach-ink)) padding-box,
              linear-gradient(150deg, #F3EEE4, #E8C36A 28%, #8a6420 52%, #E8C36A 76%, #F3EEE4) border-box;
  box-shadow: 0 22px 56px rgba(0,0,0,.62), 0 0 42px rgba(232,195,106,.15), inset 0 1px 0 rgba(255,243,210,.12); }
.ach-card.tier3::before { background: radial-gradient(ellipse 80% 42% at 50% 26%, rgba(232,195,106,.26), transparent 70%), radial-gradient(ellipse 60% 30% at 50% 30%, rgba(123,79,214,.16), transparent 72%); }
.ach-card.tier3::after { inset: 6px; border-color: rgba(232,195,106,.34); box-shadow: inset 0 0 0 3px rgba(5,6,15,.55), inset 0 0 0 4px rgba(243,238,228,.12); }
@keyframes achAmPulse { 50% { opacity: 1; } }

/* survol (souris) et focus clavier : la carte s'élève, le halo s'intensifie, les gravures s'allument */
@media (hover: hover) {
  .ach-card:hover { transform: translateY(-4px); }
  .ach-card:hover::before { opacity: 1; }
  .ach-card:hover .ach-cn { opacity: 1; }
}
.ach-card:focus-within::before { opacity: 1; } .ach-card:focus-within .ach-cn { opacity: 1; }
.ach-card.tier1:hover, .ach-card.tier1:focus-within { border-color: color-mix(in srgb, var(--metal) 70%, transparent); box-shadow: 0 22px 52px rgba(0,0,0,.6), 0 0 34px rgba(79,116,255,.24); }
.ach-card.tier2:hover, .ach-card.tier2:focus-within { border-color: color-mix(in srgb, var(--metal) 72%, transparent); box-shadow: 0 22px 54px rgba(0,0,0,.62), 0 0 44px rgba(123,79,214,.3); }
.ach-card.tier3:hover, .ach-card.tier3:focus-within { box-shadow: 0 26px 62px rgba(0,0,0,.66), 0 0 62px rgba(232,195,106,.28); }
.ach-card:hover::after, .ach-card:focus-within::after { border-color: color-mix(in srgb, var(--metal) 32%, transparent); }
/* toucher : réponse immédiate */
@media (hover: none) { .ach-card:active { transform: scale(.993); transition-duration: .12s; } }

/* gravures d'angle */
.ach-cn { position: absolute; width: 40px; height: 40px; pointer-events: none; z-index: 0; opacity: .55; transition: opacity .45s ease; fill: none; stroke: var(--metal); stroke-width: 1; stroke-linecap: round; }
.ach-cn.tl { top: 10px; left: 10px; } .ach-cn.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.ach-cn.bl { bottom: 10px; left: 10px; transform: scaleY(-1); } .ach-cn.br { bottom: 10px; right: 10px; transform: scale(-1); }
.ach-cn .l { stroke-opacity: .85; } .ach-cn .l2 { stroke-opacity: .35; stroke-width: .8; }
.ach-cn .k { stroke: color-mix(in srgb, var(--g) 60%, #fff); stroke-opacity: .7; stroke-width: .8; }
.ach-cn .s { fill: var(--metal); stroke: none; }
.ach-cn .c { fill: color-mix(in srgb, var(--g) 30%, transparent); stroke: #ecdfff; stroke-opacity: .7; stroke-width: .7; }
.ach-cn .c2 { fill: color-mix(in srgb, var(--g) 20%, transparent); stroke: #ecdfff; stroke-opacity: .5; stroke-width: .6; }
.ach-cn .r { stroke: #F3EEE4; stroke-opacity: .55; stroke-width: .8; }
.ach-card.tier3 .ach-cn { width: 46px; height: 46px; opacity: .7; }

/* A — niveau */
.ach-za { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.ach-lvl { position: relative; width: 176px; height: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.ach-lvl-f { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ach-lvl-f .o { fill: color-mix(in srgb, var(--g) 12%, rgba(5,6,15,.78)); stroke: var(--metal); stroke-opacity: .75; stroke-width: 1; }
.ach-lvl-f .i { fill: none; stroke: var(--metal); stroke-opacity: .32; stroke-width: .8; }
.ach-lvl-f .t { stroke: var(--metal); stroke-opacity: .55; stroke-width: 1; }
.ach-lvl-f .g { fill: color-mix(in srgb, var(--metal) 80%, #fff); }
.ach-lvl span { position: relative; padding-left: 4px; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
  color: color-mix(in srgb, var(--metal) 60%, #fff); }
.ach-card.tier3 .ach-lvl-f .o { fill: rgba(42,30,10,.75); } .ach-card.tier3 .ach-lvl-f .g { fill: #F3EEE4; } .ach-card.tier3 .ach-lvl span { color: #F3EEE4; }
/* POLARIS : couronne céleste (arc d'astrolabe gradué, rayons, sceau POLARISTAR) */
.ach-crown { display: block; width: 200px; height: auto; margin: -6px auto -4px; overflow: visible; fill: none; stroke-linecap: round; }
.ach-crown .arc { stroke: #E8C36A; stroke-width: 1.2; } .ach-crown .arc2 { stroke: #E8C36A; stroke-opacity: .4; stroke-width: .6; }
.ach-crown .tk { stroke: #E8C36A; stroke-opacity: .75; stroke-width: .8; }
.ach-crown .ry { stroke: #F3EEE4; stroke-opacity: .5; stroke-width: .8; transition: stroke-opacity .45s ease; }
.ach-crown .ln { stroke: #E8C36A; stroke-opacity: .55; stroke-width: .7; } .ach-crown .dm { fill: #E8C36A; }
.ach-crown .ring { fill: rgba(5,6,15,.82); stroke: #E8C36A; stroke-width: 1.1; } .ach-crown .ring2 { stroke: #F3EEE4; stroke-opacity: .35; stroke-width: .6; }
.ach-crown .seal { fill: #F3EEE4; animation: achSeal 6s ease-in-out infinite; } .ach-crown .core { fill: #E8C36A; }
.ach-card.tier3:hover .ach-crown .ry, .ach-card.tier3:focus-within .ach-crown .ry { stroke-opacity: .95; }
@keyframes achSeal { 50% { opacity: .7; } }

/* B — reliquaire : le coffre grandit avec le prestige */
.ach-zb { position: relative; display: flex; align-items: center; justify-content: center; }
.ach-art { position: relative; width: 100%; max-width: 250px; aspect-ratio: 240 / 230; margin: 8px auto 0; }
.ach-card.tier2 .ach-art { max-width: 270px; }
.ach-card.tier3 .ach-art { max-width: 320px; aspect-ratio: 300 / 250; }
.ach-art::before { content: ''; position: absolute; left: 50%; top: -14%; width: 80%; height: 96%; transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, color-mix(in srgb, var(--g) 26%, transparent), transparent 70%); }
.ach-art-in { position: absolute; inset: 0; z-index: 1; animation: chFloat 7s ease-in-out infinite; }

/* C — nom et valeur */
.ach-zc { position: relative; z-index: 1; padding-top: 6px; }
.ach-card h4 { margin: 0; font-family: 'Cinzel Decorative', 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 20px; font-weight: 700; letter-spacing: 3px; line-height: 1.25; color: var(--ach-ivory); text-wrap: balance; }
.ach-card.tier3 h4 { font-size: 22px; color: #fff6dc; }
.ach-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; width: max-content; max-width: 100%; margin: 10px auto 0; padding: 5px 20px 6px;
  border-top: 1px solid color-mix(in srgb, var(--metal) 34%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--metal) 34%, transparent); }
.ach-price b { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 30px; font-weight: 600; line-height: 1.1; color: #f6e3ad; font-variant-numeric: lining-nums; white-space: nowrap; }
.ach-price small { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 11px; font-weight: 600; letter-spacing: 3px; color: #e3d8bd; white-space: nowrap; }
.ach-card.tier3 .ach-price b { font-size: 34px; color: #ffe9b0; }

/* D — récit, trésors, spectre */
.ach-zd { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 14px; text-align: left; }
.ach-zs { position: relative; z-index: 1; margin-top: 16px; text-align: left; }
.ach-tag { margin: 0; text-align: center; font-size: 17px; font-style: italic; line-height: 1.45; color: #efe8f8; text-wrap: balance; }
.ach-zd h5, .ach-zs h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 10.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: color-mix(in srgb, var(--metal) 55%, #fff); white-space: nowrap; }
.ach-zd h5::before, .ach-zd h5::after, .ach-zs h5::before, .ach-zs h5::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--metal) 45%, transparent)); }
.ach-zd h5::after, .ach-zs h5::after { background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--metal) 45%, transparent)); }
.ach-orn { display: inline-block; flex: 0 0 auto; width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid #E8C36A; opacity: .85; }
.ach-tre dl { display: grid; gap: 7px; margin: 0; }
.ach-tre dl > div { display: grid; gap: 3px; padding: 7px 11px 8px; border-radius: 9px; }
.ach-tre dt { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.ach-tre dd { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ach-ivory); }
.ach-tre dd sup { font-size: .65em; }
.ach-tre-g { background: rgba(63,224,208,.07); border: 1px solid rgba(63,224,208,.32); } .ach-tre-g dt { color: #3FE0D0; }
.ach-tre-p { border: 1px dashed rgba(243,238,228,.18); } .ach-tre-p dt { color: #cfc4e6; }
.ach-tre-p ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.ach-tre-p li { display: flex; align-items: baseline; gap: 8px; }
.ach-tre-p li .ach-orn { width: 4px; height: 4px; opacity: .75; transform: translateY(-3px) rotate(45deg); }
.ach-rodds-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 1px; margin: 0 0 6px; background: rgba(255,255,255,.06); }
.ach-rodds-bar i { display: block; min-width: 2px; background: var(--rc); }
.ach-spec-t { width: 100%; border-collapse: collapse; }
.ach-spec-t th, .ach-spec-t td { padding: 5px 2px; border-bottom: 1px solid rgba(243,238,228,.07); vertical-align: middle; }
.ach-spec-t tbody tr:last-child th, .ach-spec-t tbody tr:last-child td { border-bottom: 0; }
.ach-spec-t th { text-align: left; font-size: 16px; font-weight: 600; color: color-mix(in srgb, var(--rc) 40%, #fff); }
.ach-spec-t td { text-align: right; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 13.5px; font-weight: 600; color: var(--ach-ivory); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.ach-sw { display: inline-block; width: 8px; height: 8px; margin: 0 10px 1px 2px; transform: rotate(45deg); background: var(--rc); vertical-align: middle; }
.ach-spec-t tr.r-polaristar .ach-sw { background: #fff; box-shadow: 0 0 0 1px #E8C36A; }
.ach-spec-n { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: #c4bad8; }

/* E — actions */
.ach-ze { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--metal) 18%, transparent); }
.ach-state { margin: 0; text-align: center; font-size: 15.5px; line-height: 1.4; color: #d9d0ea; }
.ach-state.is-ok { color: #8ff0e6; } .ach-state.is-low { color: #ffc2b2; } .ach-state.is-soon { color: color-mix(in srgb, var(--metal) 55%, #fff); }
.ach-state-n { margin: 0; text-align: center; font-size: 14px; color: #c4bad8; }
.ach-card .ac-btn.ach-main { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; transition: transform .12s ease, filter .3s ease, box-shadow .3s ease; }
.ach-card .ac-btn.ach-main[data-ach="demo"] { color: #fff; font-weight: 600; border: 1px solid color-mix(in srgb, var(--metal) 60%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--g) 34%, #0B1030), color-mix(in srgb, var(--g) 16%, #05060F)); }
.ach-card.tier3 .ac-btn.ach-main[data-ach="demo"] { color: #1a1204; border-color: transparent; background: linear-gradient(135deg, #F3EEE4, #E8C36A 45%, #c99a3c); }
.ach-card .ac-btn.ach-main.ac-btn-gold { box-shadow: 0 8px 22px -10px rgba(232,195,106,.8); }
.ach-card .ac-btn.ach-main:hover { filter: brightness(1.08); }
.ach-card .ac-btn.ach-main:active { transform: scale(.98); }
.ach-card .ac-btn.ach-stock { width: 100%; min-height: 44px; font-size: 11.5px; letter-spacing: 1.5px; }
.ach-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 12px; }
.ach-link { background: none; border: 0; padding: 0 4px; min-height: 44px; cursor: pointer; font: inherit; font-size: 15.5px; color: color-mix(in srgb, var(--metal, #c9d3ff) 55%, #fff);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--metal, #c9d3ff) 45%, transparent); }
.ach-link:hover { text-decoration-color: currentColor; }
.ach-card button:focus-visible { outline: 2px solid #3FE0D0; outline-offset: 3px; }

/* téléphone : une colonne, coffre un peu plus compact, tout reste lisible sans zoom */
@media (max-width: 599px) {
  .ach-grid { gap: 18px; }
  .ach-card { padding: 18px 14px 16px; }
  .ach-art { max-width: 220px; } .ach-card.tier2 .ach-art { max-width: 236px; } .ach-card.tier3 .ach-art { max-width: 270px; }
  .ach-card h4 { font-size: 18px; letter-spacing: 2.5px; } .ach-card.tier3 h4 { font-size: 20px; }
  .ach-price b { font-size: 28px; } .ach-card.tier3 .ach-price b { font-size: 30px; }
  .ach-cn { width: 32px; height: 32px; } .ach-card.tier3 .ach-cn { width: 38px; height: 38px; }
}

/* animations des cartes hors écran : en pause */
.ach-card.ach-idle::before, .ach-card.ach-idle * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .ach-card, .ach-card::before, .ach-card::after, .ach-cn, .ach-crown * { animation: none !important; transition: none !important; }
  .ach-card:hover { transform: none; }
}

/* ── Fragments d'OUVRAGES (2026-10-20) : couverture en 4 quarts, tranche dorée à gauche ── */
.pz.pz-book { aspect-ratio: 2 / 3; border-radius: 3px 9px 9px 3px; --rc: #e6c36a;
  box-shadow: 0 0 0 1px rgba(255,231,160,.28), 4px 6px 14px rgba(0,0,0,.45); }
.pz.pz-book.noimg .pz-p { background-image: linear-gradient(160deg, #3a2a68, #120c2a 70%); }
.pz-book .pz-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 7%; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(255,231,160,.22) 55%, rgba(0,0,0,.25)); }
.pz-book .pz-seams { stroke: rgba(255,231,160,.45); }
.pz-book .pz-p.hi { filter: brightness(1.12) saturate(1.1); }
.ach-bfrag .pz { width: 64px; flex: 0 0 64px; }
.ach-hero-art .pz.pz-book { width: 92px; }

/* ═══ COFFRE EN VRAIE 3D (aurea-chest3d.js, 20/10) : le canvas remplace le dessin SVG dès sa première image ═══ */
.ach-chest { position: relative; }
.ach3d-host > .ach3d-canvas { position: absolute; inset: -6% -4% -2%; width: 108%; height: 108%; display: block; z-index: 2; opacity: 0; transition: opacity .6s ease; }
.ach3d-on > .ach3d-canvas { opacity: 1; }
.ach3d-on > .ch-svg { visibility: hidden; }
.ach3d-wait > .ch-svg { visibility: hidden; }             /* l'image Blender remplace l'ancien dessin pendant le chargement */
.ach3d-poster { position: absolute; inset: -6% -4% -2%; width: 108%; height: 108%; object-fit: contain; z-index: 1; pointer-events: none; transition: opacity .6s ease; }
.ach-chest > .ach3d-poster { inset: -10%; width: 120%; height: 120%; }
.ach3d-on > .ach3d-poster { opacity: 0; }
.ach-art-in.ach3d-on { animation: none; }                 /* le flottement est fait dans la scène 3D */
.ach-chest > .ach3d-canvas { pointer-events: none; inset: -10%; width: 120%; height: 120%; }
