/* Cineco — trophées : dix raretés, chacune son dessin et son animation (plus c'est rare, plus ça vit). */
.tro { position: relative; flex: none; font-size: 50px; width: 1em; height: 1em; border-radius: 17px; display: grid; place-items: center; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 15%, color-mix(in srgb, var(--t2) 26%, transparent), color-mix(in srgb, var(--t3) 16%, rgba(255, 255, 255, .02)) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t1) 34%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -8px color-mix(in srgb, var(--t3) 80%, transparent); }
.tro > svg { position: relative; z-index: 2; width: 78%; height: 78%; overflow: visible; filter: drop-shadow(0 3px 5px color-mix(in srgb, var(--t3) 70%, transparent)); }
.tro.lg { font-size: 74px; border-radius: 24px; }
.tro.xl { font-size: 150px; border-radius: 44px; }
.tro i { position: absolute; display: block; pointer-events: none; font-style: normal; }
.tx-glass { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 3; pointer-events: none; }

/* Reflet : une bande de lumière traverse le verre de temps en temps */
.tx-shine { inset: -20% auto -20% -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: tx-shine 5.5s ease-in-out infinite; mix-blend-mode: soft-light; }
.fx-reflet .tx-shine { mix-blend-mode: overlay; }
@keyframes tx-shine { 0%, 62% { left: -60%; } 86%, 100% { left: 130%; } }

/* Halo : une lueur respire derrière */
.tx-halo { inset: -18%; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--t2) 55%, transparent), transparent); animation: tx-breathe 4.8s ease-in-out infinite; }
@keyframes tx-breathe { 0%, 100% { opacity: .35; transform: scale(.88); } 50% { opacity: .85; transform: scale(1.06); } }

/* Étincelles */
.tx-spark { z-index: 4; width: .16em; height: .16em; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 3px var(--t1)); animation: tx-twinkle 3.2s ease-in-out infinite; opacity: 0; }
.tx-spark.s1 { top: 6%; left: 10%; }
.tx-spark.s2 { top: 14%; right: 4%; animation-delay: .9s; width: .12em; height: .12em; }
.tx-spark.s3 { bottom: 24%; left: 2%; animation-delay: 1.7s; width: .1em; height: .1em; }
.tx-spark.s4 { bottom: 12%; right: 12%; animation-delay: 2.4s; }
@keyframes tx-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.4) rotate(90deg); } }

/* Éclats : l'émeraude est brisée, des morceaux s'en échappent et flottent autour (tailles en em = suivent la taille du trophée) */
.tx-shard { z-index: 4; left: 50%; top: 42%; width: .15em; height: .19em; background: linear-gradient(160deg, var(--t1), var(--t2)); clip-path: polygon(50% 0, 100% 70%, 30% 100%, 0 40%); filter: drop-shadow(0 0 .06em var(--t2)); animation: tx-shard 6s ease-in-out infinite; }
.tx-shard.h0 { --dx: -.62em; --dy: -.5em; --r: -40deg; }
.tx-shard.h1 { --dx: .6em; --dy: -.58em; --r: 50deg; animation-delay: -1s; width: .1em; height: .14em; }
.tx-shard.h2 { --dx: .7em; --dy: .08em; --r: 120deg; animation-delay: -2s; }
.tx-shard.h3 { --dx: -.7em; --dy: .14em; --r: -110deg; animation-delay: -3s; width: .1em; height: .12em; }
.tx-shard.h4 { --dx: -.34em; --dy: -.74em; --r: 20deg; animation-delay: -4s; width: .08em; height: .12em; }
.tx-shard.h5 { --dx: .42em; --dy: .5em; --r: 200deg; animation-delay: -5s; width: .1em; height: .12em; }
@keyframes tx-shard {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); }
  20% { opacity: 1; }
  60% { opacity: .9; transform: translate(calc(-50% + var(--dx) * .8), calc(-50% + var(--dy) * .8)) scale(1) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.6) rotate(calc(var(--r) * 2)); }
}
.fx-eclats .tx-crack { animation: tx-crack 3s ease-in-out infinite; }
@keyframes tx-crack { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Flammes : le rubis brûle doucement, des braises montent */
.fx-flammes .tx-fire { transform-origin: 32px 40px; animation: tx-flicker 2.2s ease-in-out infinite; }
@keyframes tx-flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.97, 1.04) skewX(-2deg); } 50% { transform: scale(1.02, .97) skewX(1.5deg); } 75% { transform: scale(.98, 1.03) skewX(-1deg); } }
.tx-ember { z-index: 4; bottom: 34%; width: .06em; height: .06em; border-radius: 50%; background: var(--t1); box-shadow: 0 0 .12em .03em var(--t2); animation: tx-ember 3.4s ease-in infinite; opacity: 0; }
.tx-ember.e0 { left: 38%; } .tx-ember.e1 { left: 56%; animation-delay: .7s; } .tx-ember.e2 { left: 47%; animation-delay: 1.4s; width: .04em; height: .04em; }
.tx-ember.e3 { left: 62%; animation-delay: 2.1s; } .tx-ember.e4 { left: 32%; animation-delay: 2.8s; width: .04em; height: .04em; }
@keyframes tx-ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(.12em, -.85em); } }
.fx-flammes .tx-halo { background: radial-gradient(closest-side, color-mix(in srgb, var(--t2) 70%, transparent), transparent); animation-duration: 2.6s; }

/* Prisme : le diamant décompose la lumière, des rayons arc-en-ciel tournent derrière */
.tx-rays { inset: -30%; z-index: -1; border-radius: 50%; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 120, 160, .55) 0 6deg, transparent 6deg 22deg, rgba(120, 220, 255, .55) 22deg 28deg, transparent 28deg 45deg, rgba(255, 240, 150, .5) 45deg 50deg, transparent 50deg 60deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); animation: tx-spin 18s linear infinite; }
.fx-prisme > svg { animation: tx-prism 7s ease-in-out infinite; }
@keyframes tx-prism { 0%, 100% { filter: drop-shadow(0 3px 5px rgba(80, 140, 180, .6)) hue-rotate(0); } 50% { filter: drop-shadow(0 0 10px rgba(200, 240, 255, .9)) hue-rotate(28deg); } }
.fx-prisme .tx-glint, .fx-cosmos .tx-glint { transform-box: fill-box; transform-origin: center; animation: tx-twinkle 2.6s ease-in-out infinite; }
.tx-glint.d2 { animation-delay: 1s !important; } .tx-glint.d3 { animation-delay: 1.8s !important; }
@keyframes tx-spin { to { transform: rotate(360deg); } }

/* Cosmos : la plus rare. Une nébuleuse tourne lentement, trois astres gravitent */
.fx-cosmos { background: radial-gradient(120% 100% at 50% 20%, #2a1660, #0b0620 75%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t2) 60%, transparent), 0 0 18px -4px color-mix(in srgb, var(--t2) 70%, transparent); }
.tx-nebula { inset: 0; border-radius: inherit; z-index: 0; overflow: hidden; opacity: .8;
  background: conic-gradient(from 0deg at 50% 45%, rgba(155, 123, 255, .0), rgba(155, 123, 255, .55), rgba(90, 200, 255, .35), rgba(255, 120, 220, .4), rgba(155, 123, 255, 0));
  filter: blur(6px); animation: tx-spin 24s linear infinite; }
.tx-orbit { inset: -12%; z-index: 4; border-radius: 50%; animation: tx-spin 9s linear infinite; }
.tx-orbit b { position: absolute; width: .08em; height: .08em; border-radius: 50%; background: #fff; box-shadow: 0 0 .12em .04em var(--t2); }
.tx-orbit b:nth-child(1) { top: 0; left: 50%; }
.tx-orbit b:nth-child(2) { bottom: 10%; left: 8%; width: .06em; height: .06em; }
.tx-orbit b:nth-child(3) { top: 40%; right: -2%; width: .05em; height: .05em; }
.fx-cosmos .tx-halo { background: radial-gradient(closest-side, rgba(155, 123, 255, .6), transparent); }

/* Verrouillé : gravé dans la pierre, sans vie */
.tro.off { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.tro.off > svg { filter: grayscale(1) brightness(.55) contrast(.9); opacity: .55; }

/* Fiche d'un trophée */
.tro-sheet { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 18px 10px; }
.tro-sheet .tro.xl { margin-bottom: 10px; }
.tro-sheet h3 { margin: 0; font-size: 19px; }
.tro-sheet .tro-rar { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; color: var(--t1); background: color-mix(in srgb, var(--t2) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t1) 30%, transparent); }
.tro-sheet p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.tro-card { cursor: pointer; font: inherit; color: inherit; border: 0; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .tro *, .tro { animation: none !important; }
  .tx-shard, .tx-ember, .tx-spark { display: none; }
}
