/* =====================================================================================
   PERFIL PERSONALIZABLE (estilo Discord): tarjeta + disenos (cos-*)
   Fondos, marcos del avatar, estilos del nombre, titulos y efectos.
   ===================================================================================== */
.pfc { --acc: #38cdf5; position: relative; border-radius: 18px; overflow: hidden; background: #08141f; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); box-shadow: 0 0 30px -12px var(--acc), 0 18px 40px -20px #000; }
.pfc-banner { position: relative; height: 150px; overflow: hidden; background: #0d2233; }
.pfc-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pfc-show { position: absolute; right: 14px; bottom: -6px; width: 230px; height: 130px; display: grid; place-items: end center; z-index: 3; }
.pfc-show img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.35) translateY(6px); filter: drop-shadow(0 8px 14px rgba(0,0,0,.7)); }
.pfc-body { position: relative; padding: 0 22px 18px; }
.pfc-avatar { margin-top: -54px; display: inline-block; position: relative; z-index: 4; }
.pfc-id { margin-top: 6px; }
.pfc-name { display: flex; align-items: baseline; gap: 6px; font: 900 28px var(--display); line-height: 1.15; flex-wrap: wrap; }
.pfc-title { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font: 800 12px var(--display); letter-spacing: .4px; text-transform: uppercase; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.pfc-title.rare { color: #6fb8ff; border-color: #6fb8ff88; }
.pfc-title.epic { color: #c58bff; border-color: #c58bff88; }
.pfc-title.legendary { color: #ffcf4a; border-color: #ffcf4a88; box-shadow: 0 0 12px -4px #ffcf4a; }
.pfc-rank { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.pfc-bio { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border-left: 3px solid var(--acc); line-height: 1.5; }
.pfc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.pfc-stats > div { display: flex; flex-direction: column; align-items: center; padding: 8px; border-radius: 12px; background: rgba(2,10,16,.55); border: 1px solid var(--line-soft); }
.pfc-stats b { font: 900 22px var(--display); color: var(--acc); }
.pfc-stats span { font-size: 11px; color: var(--muted); }
.pf-page-card { max-width: 900px; margin: 0 auto 14px; }
.profile-modal { width: min(760px, 96vw); padding: 0; text-align: left; }
.profile-modal > .pfc { border-radius: 16px 16px 0 0; }
.profile-modal > .card { margin: 12px; }
.profile-modal .pf-close { position: absolute; top: 10px; right: 10px; z-index: 6; background: rgba(0,0,0,.45); }

/* ---------- Avatar con marco ---------- */
.pf-frame { position: relative; isolation: isolate; display: inline-grid; place-items: center; border-radius: 50%; padding: 4px; }
.pf-frame img, .pf-frame .pf-initial { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font: 900 30px var(--display); background: #0b2131; }
.pf-frame::before { content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 0; }
.pf-frame.xl { width: 112px; height: 112px; padding: 6px; }
.pf-frame.md { width: 56px; height: 56px; }
.pf-frame.sm { width: 46px; height: 46px; padding: 3px; }
.pf-frame.sm .pf-initial { font-size: 16px; }

/* ---------- MARCOS ---------- */
.cos-f_none::before { background: #1c3a50; }
.cos-f_bronze::before { background: linear-gradient(135deg, #b9794a, #f0c08a, #7a4a20); }
.cos-f_silver::before { background: linear-gradient(135deg, #8a99a6, #ffffff, #5c6a76); }
.cos-f_gold::before { background: conic-gradient(#ffcf4a, #fff2a8, #c49a1f, #ffcf4a); animation: frSpin 4s linear infinite; }
.cos-f_ruby::before { background: conic-gradient(#ff5a5f, #ffb0b0, #8a0010, #ff5a5f); animation: frSpin 5s linear infinite; box-shadow: 0 0 14px #ff5a5f; }
.cos-f_amethyst::before { background: conic-gradient(#c58bff, #f0d8ff, #4a1a8a, #c58bff); animation: frSpin 6s linear infinite reverse; box-shadow: 0 0 14px #c58bff; }
.cos-f_diamond::before { background: conic-gradient(#6fe3ff, #ffffff, #38cdf5, #c0f6ff, #6fe3ff); animation: frSpin 3s linear infinite; box-shadow: 0 0 18px #6fe3ff; }
.cos-f_eternal::before { background: conic-gradient(#7dffb0, #38cdf5, #c58bff, #ffcf4a, #7dffb0); animation: frSpin 3s linear infinite, frHue 6s linear infinite; box-shadow: 0 0 22px #7dffb0; }
.cos-f_sub::before { background: conic-gradient(#38cdf5, #0a1a26 40%, #38cdf5 60%, #0a1a26); animation: frSpin 5s linear infinite; }
.cos-f_crown::before { background: conic-gradient(#ffd75e, #ff9f1a, #fff2a8, #ff9f1a, #ffd75e); animation: frSpin 4s linear infinite; box-shadow: 0 0 22px #ffb000; }
.cos-f_crown::after { content: '👑'; position: absolute; z-index: 2; top: -20px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 26px; filter: drop-shadow(0 2px 4px #000); }
.pf-frame.sm.cos-f_crown::after { font-size: 14px; top: -10px; }
.cos-f_vines::before { background: repeating-conic-gradient(#2f6a20 0 12deg, #7dbb3a 12deg 20deg, #1a3a10 20deg 30deg); }
.cos-f_frost::before { background: conic-gradient(#bff4ff, #ffffff, #6fb8ff, #bff4ff); animation: frSpin 8s linear infinite; box-shadow: 0 0 16px #bff4ff; }
.cos-f_flames::before { background: conic-gradient(#ff2000, #ffb000, #ff5a00, #ffe14d, #ff2000); animation: frSpin 1.6s linear infinite; box-shadow: 0 0 24px #ff5a00; }
.cos-f_lightning::before { background: conic-gradient(#ffffff, #6fe3ff 20%, #1a1aff 40%, #ffffff 50%, #6fe3ff 70%, #1a1aff 90%); animation: frSpin .9s steps(6) infinite; box-shadow: 0 0 20px #6fe3ff; }
@keyframes frSpin { to { transform: rotate(360deg); } }
@keyframes frHue { to { filter: hue-rotate(360deg); } }
@keyframes cosPulse { 50% { filter: brightness(1.4); } }

/* ---------- FONDOS ---------- */
.cos-b_basic { background: radial-gradient(ellipse at 30% 120%, #1a4866, transparent 60%), linear-gradient(180deg, #071422, #0d2233); }
.cos-b_jungle { background: radial-gradient(circle at 20% 30%, #3f6a20 0 18%, transparent 19%), radial-gradient(circle at 70% 60%, #2f5a18 0 22%, transparent 23%), radial-gradient(circle at 45% 90%, #4f7a2a 0 20%, transparent 21%), linear-gradient(180deg, #1a3a10, #0d2008); }
.cos-b_sunset { background: radial-gradient(circle at 70% 85%, #ffcf4a 0 10%, #ff8a3d 18%, transparent 40%), linear-gradient(180deg, #2a0a3a, #a02a4a 55%, #ff8a3d); }
.cos-b_ocean { background: linear-gradient(180deg, #06345a, #0a6a9a); }
.cos-b_ocean::after { content: ''; position: absolute; inset: 40% -50% 0; background: repeating-radial-gradient(ellipse at 50% 0, rgba(255,255,255,.18) 0 4px, transparent 5px 26px); animation: cosWave 6s linear infinite; }
.cos-b_aurora { background: linear-gradient(115deg, #062a2a, #0a4a5a 30%, #3a1a6a 60%, #062a2a); background-size: 300% 300%; animation: cosShift 10s ease-in-out infinite; }
.cos-b_aurora::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(125,255,176,.35) 35%, transparent 50%, rgba(197,139,255,.3) 65%, transparent 80%); background-size: 200% 100%; animation: cosShift 7s ease-in-out infinite; mix-blend-mode: screen; }
.cos-b_lava { background: radial-gradient(ellipse at 50% 120%, #ffb000, #ff3a00 30%, #3a0a02 70%); }
.cos-b_lava::after { content: ''; position: absolute; inset: 0 -50%; background: repeating-linear-gradient(100deg, transparent 0 30px, rgba(255,90,0,.35) 32px 40px, transparent 42px 70px); animation: cosWave 4s linear infinite; mix-blend-mode: screen; }
.cos-b_storm { background: linear-gradient(180deg, #10141c, #2a3040); }
.cos-b_storm::after { content: ''; position: absolute; inset: 0; background: linear-gradient(170deg, transparent 45%, rgba(220,240,255,.9) 46%, transparent 47%), linear-gradient(190deg, transparent 60%, rgba(220,240,255,.6) 61%, transparent 62%); opacity: 0; animation: cosFlash 4.5s infinite; }
.cos-b_galaxy { background: radial-gradient(ellipse at 30% 50%, rgba(160,64,255,.45), transparent 50%), radial-gradient(ellipse at 75% 40%, rgba(56,205,245,.35), transparent 45%), #05030f; }
.cos-b_galaxy::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(2px 2px at 55% 30%, #fff, transparent), radial-gradient(1px 1px at 75% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 15%, #fff, transparent), radial-gradient(1px 1px at 45% 55%, #fff, transparent), radial-gradient(1.5px 1.5px at 20% 85%, #fff, transparent); animation: cosTwinkle 3s ease-in-out infinite; }
.cos-b_fossil { background: linear-gradient(120deg, #3a2a08, #c49a1f 40%, #fff2a8 50%, #c49a1f 60%, #3a2a08); background-size: 250% 100%; animation: cosShift 6s linear infinite; }
.cos-b_royal { background: radial-gradient(ellipse at 50% 0, rgba(255,207,74,.25), transparent 60%), repeating-linear-gradient(45deg, #2a0a4a 0 14px, #34105a 14px 28px); }
.cos-b_neongrid { background: linear-gradient(180deg, #0a0220 40%, #3a0a5a); }
.cos-b_neongrid::after { content: ''; position: absolute; inset: 45% 0 0; background: repeating-linear-gradient(90deg, rgba(255,0,208,.6) 0 1px, transparent 1px 34px), repeating-linear-gradient(0deg, rgba(0,229,255,.6) 0 1px, transparent 1px 18px); transform: perspective(200px) rotateX(55deg); transform-origin: top; animation: cosGrid 2s linear infinite; }
.cos-b_apex { background: radial-gradient(circle at 50% 45%, rgba(255,215,94,.55), transparent 40%), conic-gradient(from 0deg at 50% 45%, #3a2600, #ffb000, #3a2600, #ffd75e, #3a2600); animation: cosHue 9s ease-in-out infinite alternate; }
.cos-b_apex::after { content: '👑'; position: absolute; left: 50%; top: 35%; transform: translate(-50%, -50%); font-size: 54px; opacity: .3; }
.cos-b_rainforest { background: linear-gradient(180deg, #0d2a1a, #1a4a2a); }
.cos-b_rainforest::after { content: ''; position: absolute; inset: -50% 0 0; background: repeating-linear-gradient(105deg, transparent 0 9px, rgba(180,230,255,.35) 10px 11px); animation: cosRain .6s linear infinite; }
.cos-b_icecave { background: radial-gradient(ellipse at 50% 100%, #bff4ff, #38cdf5 30%, #062a4a 75%); }
.cos-b_icecave::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%); background-size: 250% 100%; animation: cosShift 5s linear infinite; }
.cos-b_toxic { background: radial-gradient(circle at 30% 80%, #b6ff00 0 6%, transparent 20%), radial-gradient(circle at 70% 70%, #2aff40 0 5%, transparent 18%), linear-gradient(180deg, #0f1a08, #2e4419); }
.cos-b_toxic::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(182,255,0,.35) 0 3px, transparent 4px) 0 0 / 40px 40px; animation: cosBubbles 3s linear infinite; }
.cos-b_dragonfire { background: linear-gradient(0deg, #ff2000, #ff8a00 30%, #3a0a02 70%, #000); }
.cos-b_dragonfire::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 100%, rgba(255,225,77,.8), transparent 40%), radial-gradient(ellipse at 60% 100%, rgba(255,90,0,.8), transparent 45%), radial-gradient(ellipse at 90% 100%, rgba(255,176,0,.8), transparent 40%); transform-origin: bottom; animation: cosFlicker .25s steps(2) infinite alternate; }
.cos-b_glitch { background: #0a0a14; }
.cos-b_glitch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #ff00d0 0 33%, #00e5ff 33% 66%, #b6ff00 66%); opacity: .5; animation: cosGlitch 1.2s steps(5) infinite; mix-blend-mode: screen; }
.cos-b_bloodmoon { background: radial-gradient(circle at 75% 35%, #ff5a5f 0 9%, #8a0010 12%, transparent 26%), linear-gradient(180deg, #1a0004, #3a0008); }
.cos-b_bloodmoon::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 75% 35%, rgba(255,32,48,.45), transparent 35%); animation: cosPulse 3s ease-in-out infinite; }
@keyframes cosWave { to { transform: translateX(25%); } }
@keyframes cosShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes cosFlash { 0%, 88%, 100% { opacity: 0; } 90%, 94% { opacity: 1; } 92% { opacity: .2; } }
@keyframes cosTwinkle { 50% { opacity: .35; } }
@keyframes cosGrid { to { background-position: 0 18px; } }
@keyframes cosHue { to { filter: hue-rotate(25deg) brightness(1.15); } }
@keyframes cosRain { to { transform: translateY(18px); } }
@keyframes cosBubbles { to { background-position: 0 -40px; } }
@keyframes cosFlicker { to { opacity: .7; transform: scaleY(1.06); } }
@keyframes cosGlitch { 0% { clip-path: inset(10% 0 70% 0); transform: translateX(-6px); } 25% { clip-path: inset(50% 0 20% 0); transform: translateX(8px); } 50% { clip-path: inset(30% 0 50% 0); transform: translateX(-3px); } 75% { clip-path: inset(70% 0 5% 0); transform: translateX(5px); } 100% { clip-path: inset(0 0 85% 0); transform: none; } }

/* ---------- NOMBRES ---------- */
.cos-name { display: inline-block; }
.cos-n_cyan { color: #6fe3ff; text-shadow: 0 0 10px rgba(56,205,245,.5); }
.cos-n_gold { background: linear-gradient(180deg, #fff2a8, #ffcf4a 50%, #c49a1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #3a2600); }
.cos-n_shimmer { background: linear-gradient(90deg, #cfe8f5 30%, #ffffff 50%, #cfe8f5 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosShift 2.5s linear infinite; }
.cos-n_legend { background: linear-gradient(90deg, #6fe3ff, #ffffff, #c58bff, #6fe3ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosShift 4s linear infinite; filter: drop-shadow(0 0 8px rgba(111,227,255,.6)); }
.cos-n_neon { color: #ff4fd8; text-shadow: 0 0 4px #ff4fd8, 0 0 12px #ff00d0, 0 0 22px #ff00d0; animation: cosNeon 3s infinite; }
.cos-n_rainbow { background: linear-gradient(90deg, #ff5a5f, #ffcf4a, #35e06a, #38cdf5, #c58bff, #ff5a5f); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosShift 3s linear infinite; }
.cos-n_ice { color: #d8f6ff; text-shadow: 0 0 6px #6fb8ff, 0 2px 0 #2a5a7a; }
.cos-n_glitch { color: #fff; text-shadow: 2px 0 #ff00d0, -2px 0 #00e5ff; animation: cosNameGlitch 1.6s steps(2) infinite; }
.cos-n_fire { background: linear-gradient(0deg, #ff2000, #ff8a00 45%, #ffe14d); background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosFireText 1s ease-in-out infinite alternate; filter: drop-shadow(0 0 8px rgba(255,90,0,.7)); }
.cos-n_blood { color: #ff2030; text-shadow: 0 0 10px rgba(255,32,48,.7), 0 3px 2px #3a0008; animation: cosPulse 2s ease-in-out infinite; }
@keyframes cosNeon { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .4; } 95% { opacity: 1; } 96% { opacity: .6; } }
@keyframes cosNameGlitch { 0%, 80%, 100% { text-shadow: 2px 0 #ff00d0, -2px 0 #00e5ff; } 85% { text-shadow: -3px 1px #ff00d0, 3px -1px #00e5ff; transform: translateX(1px); } 90% { text-shadow: 3px -1px #ff00d0, -3px 1px #00e5ff; transform: translateX(-1px); } }
@keyframes cosFireText { to { background-position: 0 100%; } }

/* ---------- EFECTOS ---------- */
.cos-e_fireflies { background-image: radial-gradient(3px 3px at 15% 60%, #e6ff4d, transparent), radial-gradient(2px 2px at 40% 30%, #e6ff4d, transparent), radial-gradient(3px 3px at 65% 70%, #e6ff4d, transparent), radial-gradient(2px 2px at 85% 40%, #e6ff4d, transparent); animation: cosFloat 6s ease-in-out infinite alternate, cosTwinkle 1.8s ease-in-out infinite; }
.cos-e_embers { background-image: radial-gradient(3px 3px at 10% 90%, #ffb000, transparent), radial-gradient(2px 2px at 30% 80%, #ff5a00, transparent), radial-gradient(3px 3px at 55% 95%, #ffe14d, transparent), radial-gradient(2px 2px at 80% 85%, #ff5a00, transparent); background-size: 100% 60%; animation: cosRise 3s linear infinite; }
.cos-e_sparkles { background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(3px 3px at 50% 20%, #fff2a8, transparent), radial-gradient(2px 2px at 75% 60%, #fff, transparent), radial-gradient(3px 3px at 35% 75%, #fff2a8, transparent); animation: cosTwinkle 1.2s ease-in-out infinite; }
.cos-e_snow { background-image: radial-gradient(3px 3px at 10% 10%, #fff, transparent), radial-gradient(2px 2px at 35% 30%, #fff, transparent), radial-gradient(3px 3px at 60% 5%, #fff, transparent), radial-gradient(2px 2px at 85% 25%, #fff, transparent); background-size: 100% 50%; animation: cosSnow 4s linear infinite; }
.cos-e_leaves { background-image: radial-gradient(ellipse 5px 3px at 15% 10%, #7dbb3a, transparent), radial-gradient(ellipse 5px 3px at 45% 30%, #a3d94a, transparent), radial-gradient(ellipse 5px 3px at 75% 20%, #5a8a2a, transparent); background-size: 100% 60%; animation: cosSnow 5s linear infinite; }
@keyframes cosRise { from { background-position: 0 0; } to { background-position: 0 -150px; } }
@keyframes cosSnow { from { background-position: 0 -80px; } to { background-position: 30px 160px; } }
@keyframes cosFloat { to { transform: translateY(-10px); } }
.fx-reduced .pfc *, .fx-reduced .pfc *::after, .fx-reduced .pf-frame::before, .fx-reduced .cos-name { animation: none !important; }

/* ---------- Editor ---------- */
.pf-edit-layout { display: grid; grid-template-columns: minmax(340px, 480px) minmax(0,1fr); gap: 16px; align-items: start; }
.pf-edit-left { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; }
.pf-editor { display: flex; flex-direction: column; gap: 12px; }
.pf-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pf-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(2,10,16,.5); color: var(--text); cursor: pointer; transition: transform .12s, border-color .12s; }
.pf-item:hover { transform: translateY(-2px); }
.pf-item.on { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan), 0 0 16px -4px var(--cyan); }
.pf-item.locked { opacity: .45; filter: grayscale(.7); }
.pf-item.locked::after { content: '🔒'; position: absolute; top: 4px; right: 6px; font-size: 13px; }
.pf-item.rar-rare { border-color: #6fb8ff44; } .pf-item.rar-epic { border-color: #c58bff55; } .pf-item.rar-legendary { border-color: #ffcf4a66; }
.pi-swatch { position: relative; width: 100%; height: 46px; border-radius: 8px; overflow: hidden; display: block; }
.pi-name { font: 900 20px var(--display); height: 46px; display: grid; place-items: center; }
.pi-title { font-size: 26px; height: 46px; display: grid; place-items: center; }
.pi-lbl { font: 700 12px var(--display); text-align: center; }
.pi-rar { font-size: 10.5px; color: var(--muted); text-align: center; }
.pf-item.rar-legendary .pi-rar { color: #ffcf4a; } .pf-item.rar-epic .pi-rar { color: #c58bff; } .pf-item.rar-rare .pi-rar { color: #6fb8ff; }
.pf-accents { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-acc { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 3px solid rgba(255,255,255,.15); cursor: pointer; }
.pf-acc.on { border-color: #fff; box-shadow: 0 0 12px var(--c); }
.pf-bio { width: 100%; min-height: 70px; resize: vertical; margin-bottom: 8px; }
.pf-a.ready { border-color: var(--gold); box-shadow: 0 0 14px -6px var(--gold); opacity: 1; }
.pack-look { color: #c58bff; } .pack-look.rar-legendary { color: #ffcf4a; }
.strip-tile.tier-look { background: linear-gradient(160deg, rgba(197,139,255,.35), rgba(10,4,24,.9)); border-color: #c58bff; }
@media (max-width: 1000px) { .pf-edit-layout { grid-template-columns: 1fr; } .pf-edit-left { position: static; } .pfc-show { width: 150px; height: 90px; } }
@media (max-width: 560px) { .pfc-stats { grid-template-columns: repeat(2, 1fr); } .pfc-name { font-size: 22px; } .pfc-banner { height: 120px; } .pfc-show { display: none; } }

/* ---------- Chat y reto del clan ---------- */
.social-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.clan-chat-list { height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(2,10,16,.5); border: 1px solid var(--line-soft); }
.cc-msg { max-width: 85%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: rgba(255,255,255,.05); }
.cc-msg.mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: rgba(56,205,245,.14); }
.cc-msg b { font-size: 12.5px; } .cc-time { margin-left: 6px; font-size: 10.5px; color: var(--muted); }
.cc-text { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.clan-challenge { background-image: radial-gradient(ellipse at 100% 0, rgba(255,90,95,.14), transparent 60%); }

/* =====================================================================================
   COLECCION 2 (15-nov-2026): fondos, marcos, nombres y efectos nuevos. Todo animado con CSS.
   ===================================================================================== */
/* ---------- Fondos ---------- */
.cos-b_synthwave { background: radial-gradient(circle at 50% 62%, #ffe14d 0 9%, #ff8a3d 13%, #ff2a8a 20%, transparent 34%), linear-gradient(180deg, #12002a 0%, #3a0a5a 45%, #ff2a8a 62%, #1a0230 62.5%); }
.cos-b_synthwave::after { content: ''; position: absolute; inset: 63% -20% 0; background: repeating-linear-gradient(90deg, rgba(0,229,255,.85) 0 1.5px, transparent 1.5px 34px), repeating-linear-gradient(0deg, rgba(255,42,138,.85) 0 1.5px, transparent 1.5px 16px); transform: perspective(160px) rotateX(58deg); transform-origin: top; animation: cosGrid 1.2s linear infinite; }
.cos-b_deepsea { background: radial-gradient(ellipse at 50% -20%, rgba(111,227,255,.55), transparent 55%), linear-gradient(180deg, #0a4a6a, #052436 55%, #010a12); }
.cos-b_deepsea::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(160,240,255,.18) 38%, transparent 46%), linear-gradient(75deg, transparent 50%, rgba(160,240,255,.14) 56%, transparent 62%); background-size: 200% 100%; animation: cosShift 9s ease-in-out infinite; }
.cos-b_deepsea::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,.5) 0 2px, transparent 3px), radial-gradient(circle at 60% 90%, rgba(255,255,255,.45) 0 3px, transparent 4px), radial-gradient(circle at 85% 70%, rgba(255,255,255,.4) 0 2px, transparent 3px), radial-gradient(circle at 40% 60%, rgba(255,255,255,.35) 0 1.5px, transparent 2.5px); animation: cosRiseB 5s linear infinite; }
.cos-b_sakura { background: radial-gradient(circle at 80% 30%, #ffd6e8 0 8%, transparent 9%), linear-gradient(180deg, #ffb3d1 0%, #f77fb0 40%, #5a1a4a 100%); }
.cos-b_sakura::before { content: ''; position: absolute; left: -5%; bottom: 0; width: 55%; height: 75%; background: radial-gradient(circle at 30% 30%, #ffc1dc 0 22%, transparent 23%), radial-gradient(circle at 60% 20%, #ff9cc6 0 20%, transparent 21%), radial-gradient(circle at 75% 50%, #ffd0e4 0 18%, transparent 19%), linear-gradient(80deg, transparent 47%, #3a1a10 48% 52%, transparent 53%); }
.cos-b_sakura::after { content: ''; position: absolute; inset: -40% 0 0; background-image: radial-gradient(ellipse 5px 3px at 10% 20%, #fff0f6, transparent), radial-gradient(ellipse 4px 3px at 40% 5%, #ffd0e4, transparent), radial-gradient(ellipse 5px 3px at 70% 35%, #fff0f6, transparent), radial-gradient(ellipse 4px 2px at 90% 15%, #ffd0e4, transparent); background-size: 100% 50%; animation: cosPetal 6s linear infinite; }
.cos-b_void { background: #04010c; }
.cos-b_void::before { content: ''; position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%); background: conic-gradient(from 0deg, transparent, rgba(160,64,255,.75), transparent 25%, rgba(255,140,40,.75) 40%, transparent 55%, rgba(56,205,245,.65) 75%, transparent); -webkit-mask: radial-gradient(circle, transparent 5%, #000 8%, transparent 30%); mask: radial-gradient(circle, transparent 5%, #000 8%, transparent 30%); animation: cosSpinC 6s linear infinite; }
.cos-b_void::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #000 0 6%, rgba(255,170,60,.95) 7%, transparent 10%), radial-gradient(1px 1px at 15% 25%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 70%, #fff, transparent), radial-gradient(1px 1px at 70% 15%, #fff, transparent), radial-gradient(1px 1px at 25% 80%, #fff, transparent); animation: cosTwinkle 4s ease-in-out infinite; }
.cos-b_matrix { background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(53,255,106,.06) 22px 24px), linear-gradient(180deg, #021a0a, #010a04); }
.cos-b_matrix::before, .cos-b_matrix::after { content: '0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 1 1 0 1'; position: absolute; top: -100%; width: 12px; font: 700 11px/12px ui-monospace, Consolas, monospace; color: #35ff6a; text-shadow: 0 0 6px #35ff6a; word-break: break-all; animation: cosCode 3s linear infinite; }
.cos-b_matrix::before { left: 22%; }
.cos-b_matrix::after { left: 66%; animation-duration: 2.2s; animation-delay: -1s; color: #b6ffc8; }
.cos-b_meteor { background: radial-gradient(ellipse at 50% 120%, #2a1060, transparent 60%), linear-gradient(180deg, #02010a, #0a0828); }
.cos-b_meteor::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 35% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 25%, #fff, transparent), radial-gradient(1px 1px at 85% 55%, #fff, transparent), radial-gradient(1px 1px at 50% 85%, #fff, transparent); }
.cos-b_meteor::after { content: ''; position: absolute; top: -10%; left: 75%; width: 160px; height: 2px; background: linear-gradient(90deg, #fff, rgba(255,170,60,.8), transparent); border-radius: 2px; box-shadow: 0 0 10px #ffb000; animation: cosMeteor 2.6s ease-in infinite; }
.cos-b_jurassic { background: radial-gradient(circle at 70% 70%, #ffe14d 0 7%, #ff9f1a 12%, transparent 30%), linear-gradient(180deg, #1a2a4a 0%, #ff8a3d 70%, #ffcf4a 100%); }
.cos-b_jurassic::before { content: ''; position: absolute; inset: 55% 0 0; background: radial-gradient(ellipse 30% 60% at 15% 100%, #0b0a08 60%, transparent 61%), radial-gradient(ellipse 40% 50% at 55% 100%, #0b0a08 60%, transparent 61%), radial-gradient(ellipse 30% 70% at 95% 100%, #0b0a08 60%, transparent 61%); }
.cos-b_jurassic::after { content: '🦖'; position: absolute; bottom: 6%; left: -60px; font-size: 44px; filter: brightness(0); animation: cosWalk 14s linear infinite; }
.cos-b_goldrush { background: radial-gradient(ellipse at 50% 100%, #ffcf4a, #8a5a00 50%, #2a1a00); }
.cos-b_goldrush::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 45%, transparent 55%); background-size: 300% 100%; animation: cosShine 3s linear infinite; }
.cos-b_goldrush::after { content: ''; position: absolute; inset: -60% 0 0; background-image: radial-gradient(circle at 15% 10%, #ffe14d 0 4px, #c49a1f 5px, transparent 6px), radial-gradient(circle at 45% 30%, #ffe14d 0 5px, #c49a1f 6px, transparent 7px), radial-gradient(circle at 75% 0%, #ffe14d 0 4px, #c49a1f 5px, transparent 6px), radial-gradient(circle at 90% 35%, #ffe14d 0 3px, #c49a1f 4px, transparent 5px); background-size: 100% 50%; animation: cosFall 2.4s linear infinite; }
.cos-b_desert { background: linear-gradient(180deg, #e8b46a, #b06a2a 60%, #6a3a12); }
.cos-b_desert::after { content: ''; position: absolute; inset: 0 -50%; background: repeating-linear-gradient(170deg, transparent 0 8px, rgba(255,230,180,.35) 9px 10px, transparent 11px 22px); animation: cosWave 1.6s linear infinite; }
.cos-b_bones { background: radial-gradient(ellipse at 50% 120%, #3a3a30, transparent 60%), linear-gradient(180deg, #0c0c10, #1c1a16); }
.cos-b_bones::before { content: '🦴  💀  🦴'; position: absolute; left: 0; right: 0; bottom: 10%; text-align: center; font-size: 30px; letter-spacing: 6px; opacity: .35; filter: grayscale(1); }
.cos-b_bones::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 30% at 50% 100%, rgba(140,255,160,.2), transparent); animation: cosFog 5s ease-in-out infinite alternate; }
.cos-b_prism { background: conic-gradient(from 0deg, #ff5a5f, #ffcf4a, #35e06a, #38cdf5, #c58bff, #ff5a5f); animation: cosHueFull 8s linear infinite; }
.cos-b_prism::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,.25) 0 2px, transparent 2px 22px), radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,.45)); }
.cos-b_camo { background: radial-gradient(circle at 20% 30%, #4a5a2a 0 14%, transparent 15%), radial-gradient(circle at 60% 20%, #2a3418 0 16%, transparent 17%), radial-gradient(circle at 80% 70%, #5a6a3a 0 15%, transparent 16%), radial-gradient(circle at 35% 75%, #1e2612 0 17%, transparent 18%), #37442a; }
@keyframes cosRiseB { from { transform: translateY(20%); opacity: .2; } 50% { opacity: 1; } to { transform: translateY(-40%); opacity: 0; } }
@keyframes cosPetal { from { transform: translate(0, 0); } to { transform: translate(-18%, 50%); } }
@keyframes cosSpinC { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes cosCode { to { top: 110%; } }
@keyframes cosMeteor { 0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; } 10% { opacity: 1; } 60%, 100% { transform: translate(-260px, 190px) rotate(-35deg); opacity: 0; } }
@keyframes cosWalk { to { transform: translateX(1100px); } }
@keyframes cosShine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes cosFall { to { transform: translateY(50%); } }
@keyframes cosFog { to { opacity: .4; transform: scaleX(1.2); } }
@keyframes cosHueFull { to { filter: hue-rotate(360deg); } }

/* ---------- Marcos ---------- */
.cos-f_neonpink::before { background: conic-gradient(#ff4fd8, #ff00d0, #ffc2f2, #ff00d0, #ff4fd8); animation: frSpin 3s linear infinite; box-shadow: 0 0 16px #ff00d0, 0 0 30px -6px #ff4fd8; }
.cos-f_toxic::before { background: conic-gradient(#b6ff00, #1a3a08, #7dff3a, #1a3a08, #b6ff00); animation: frSpin 2.4s linear infinite; box-shadow: 0 0 16px #b6ff00; }
.cos-f_ocean::before { background: conic-gradient(#0a6a9a, #6fe3ff, #ffffff, #38cdf5, #0a3a5a, #0a6a9a); animation: frSpin 5s linear infinite; box-shadow: 0 0 14px #38cdf5; }
.cos-f_galaxy::before { background: radial-gradient(1px 1px at 30% 20%, #fff, transparent), radial-gradient(1px 1px at 70% 80%, #fff, transparent), conic-gradient(#3a0a6a, #c58bff, #05030f, #38cdf5, #3a0a6a); animation: frSpin 7s linear infinite; box-shadow: 0 0 20px #8a40ff; }
.cos-f_bones::before { background: repeating-conic-gradient(#e8e4d8 0 10deg, #8a8270 10deg 14deg, #2a261e 14deg 22deg); animation: frSpin 12s linear infinite; }
.cos-f_bones::after { content: '💀'; position: absolute; z-index: 2; bottom: -10px; left: 50%; transform: translateX(-50%); font-size: 22px; filter: drop-shadow(0 2px 3px #000); }
.pf-frame.sm.cos-f_bones::after, .pf-frame.md.cos-f_bones::after { font-size: 12px; bottom: -6px; }
.cos-f_rgb::before { background: conic-gradient(#ff0040, #ffb000, #b6ff00, #00ffb0, #00b0ff, #8a00ff, #ff0040); animation: frSpin 1.5s linear infinite; box-shadow: 0 0 22px rgba(255,255,255,.35); }
.cos-f_void::before { background: conic-gradient(#000, #8a40ff, #000 30%, #ff8a3d 50%, #000 70%, #38cdf5, #000); animation: frSpin 2.5s linear infinite reverse; box-shadow: 0 0 22px #8a40ff; }
.cos-f_sakura::before { background: repeating-conic-gradient(#ffc1dc 0 18deg, #ff7fb0 18deg 30deg, #fff0f6 30deg 36deg); animation: frSpin 9s linear infinite; box-shadow: 0 0 14px #ff9cc6; }
.cos-f_sakura::after { content: '🌸'; position: absolute; z-index: 2; top: -8px; right: -4px; font-size: 22px; animation: cosBob 2.5s ease-in-out infinite; }
.pf-frame.sm.cos-f_sakura::after, .pf-frame.md.cos-f_sakura::after { font-size: 12px; top: -4px; right: -2px; }
.cos-f_plasma::before { background: conic-gradient(#ffffff, #6fe3ff, #8a40ff, #ff4fd8, #6fe3ff, #ffffff); animation: frSpin 1.2s linear infinite, frHue 3s linear infinite; box-shadow: 0 0 26px #6fe3ff; }
.cos-f_blood::before { background: conic-gradient(#8a0010, #ff2030, #3a0008, #ff2030, #8a0010); animation: frSpin 4s linear infinite; box-shadow: 0 0 18px #ff2030; }
.cos-f_blood::after { content: ''; position: absolute; z-index: 2; left: 46%; bottom: -8px; width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #ff2030; animation: cosDrip 2.2s ease-in infinite; }
.cos-f_gold2::before { background: conic-gradient(#fff6c8, #ffcf4a, #8a5a00, #ffe14d, #fff6c8, #c49a1f, #fff6c8); animation: frSpin 3s linear infinite; box-shadow: 0 0 24px #ffcf4a; }
.cos-f_matrix::before { background: repeating-conic-gradient(#35ff6a 0 4deg, #021a0a 4deg 12deg); animation: frSpin 4s steps(24) infinite; box-shadow: 0 0 14px #35ff6a; }
@keyframes cosBob { 50% { transform: translateY(-4px) rotate(10deg); } }
@keyframes cosDrip { 0% { transform: translateY(-4px) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px) scale(1); opacity: 0; } }

/* ---------- Nombres ---------- */
.cos-n_toxic { color: #c6ff7a; text-shadow: 0 0 6px #7dff3a, 0 0 16px #2aff40; animation: cosPulse 1.6s ease-in-out infinite; }
.cos-n_galaxy { background: linear-gradient(90deg, #8a40ff, #38cdf5, #ff4fd8, #8a40ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosShift 5s linear infinite; filter: drop-shadow(0 0 8px rgba(138,64,255,.6)); }
.cos-n_ocean { background: linear-gradient(180deg, #e8fbff, #6fe3ff 50%, #0a6a9a); background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosFireText 2s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(56,205,245,.6)); }
.cos-n_synth { background: linear-gradient(180deg, #ffe14d 0%, #ff8a3d 40%, #ff2a8a 60%, #8a40ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px #ff2a8a) drop-shadow(2px 2px 0 #00e5ff); }
.cos-n_matrix { color: #35ff6a; font-family: ui-monospace, Consolas, monospace !important; text-shadow: 0 0 8px #35ff6a; animation: cosNeon 2.5s infinite; }
.cos-n_plasma { background: linear-gradient(90deg, #fff, #6fe3ff, #8a40ff, #ff4fd8, #6fe3ff, #fff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosShift 1.8s linear infinite; filter: drop-shadow(0 0 10px rgba(111,227,255,.8)); }
.cos-n_sakura { color: #ffd0e4; text-shadow: 0 0 8px #ff7fb0, 0 2px 0 #8a2a5a; }
.cos-n_chrome { background: linear-gradient(180deg, #ffffff 0%, #9aa8b6 45%, #2a3440 50%, #c8d4e0 55%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #000); }
.cos-n_goldglow { background: linear-gradient(110deg, #c49a1f 30%, #fff6c8 45%, #ffcf4a 55%, #c49a1f 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosShine 2.2s linear infinite; filter: drop-shadow(0 0 8px rgba(255,207,74,.7)); }
.cos-n_bone { color: #ece6d4; text-shadow: 0 2px 0 #5a5240, 0 0 6px rgba(0,0,0,.6); }

/* ---------- Efectos ---------- */
.cos-e_rain { background-image: repeating-linear-gradient(100deg, transparent 0 11px, rgba(180,230,255,.45) 12px 13px); background-size: 100% 40px; animation: cosRainFx .5s linear infinite; }
.cos-e_bubbles { background-image: radial-gradient(circle at 20% 100%, transparent 3px, rgba(200,245,255,.7) 4px, transparent 5px), radial-gradient(circle at 55% 100%, transparent 4px, rgba(200,245,255,.6) 5px, transparent 6px), radial-gradient(circle at 80% 100%, transparent 2px, rgba(200,245,255,.7) 3px, transparent 4px); background-size: 100% 80px; animation: cosRise 4s linear infinite; }
.cos-e_petals { background-image: radial-gradient(ellipse 5px 3px at 12% 10%, #ffc1dc, transparent), radial-gradient(ellipse 4px 3px at 42% 30%, #fff0f6, transparent), radial-gradient(ellipse 5px 3px at 72% 15%, #ff9cc6, transparent), radial-gradient(ellipse 4px 2px at 90% 40%, #ffd0e4, transparent); background-size: 100% 70px; animation: cosSnow 5s linear infinite; }
.cos-e_lightning { background: linear-gradient(165deg, transparent 40%, rgba(220,240,255,.95) 41%, transparent 42.5%), linear-gradient(195deg, transparent 58%, rgba(180,220,255,.7) 59%, transparent 60%); opacity: 0; animation: cosFlash 2.8s infinite; }
.cos-e_stars::before, .cos-e_stars::after { content: ''; position: absolute; top: 10%; left: 80%; width: 90px; height: 2px; background: linear-gradient(90deg, #fff, transparent); animation: cosMeteor 3.2s ease-in infinite; }
.cos-e_stars::after { top: 0; left: 50%; animation-delay: 1.6s; width: 60px; }
.cos-e_ash { background-image: radial-gradient(2px 2px at 15% 20%, rgba(200,200,200,.7), transparent), radial-gradient(1.5px 1.5px at 45% 40%, rgba(160,160,160,.7), transparent), radial-gradient(2px 2px at 75% 10%, rgba(220,220,220,.6), transparent); background-size: 100% 60px; animation: cosSnow 7s linear infinite; }
.cos-e_code { background-image: repeating-linear-gradient(90deg, transparent 0 30px, rgba(53,255,106,.4) 30px 31px); -webkit-mask: linear-gradient(180deg, transparent, #000 30%, transparent 60%); mask: linear-gradient(180deg, transparent, #000 30%, transparent 60%); -webkit-mask-size: 100% 200%; mask-size: 100% 200%; animation: cosMaskDown 2s linear infinite; }
.cos-e_coins { background-image: radial-gradient(circle at 15% 20%, #ffe14d 0 3px, #c49a1f 4px, transparent 5px), radial-gradient(circle at 50% 10%, #ffe14d 0 4px, #c49a1f 5px, transparent 6px), radial-gradient(circle at 82% 30%, #ffe14d 0 3px, #c49a1f 4px, transparent 5px); background-size: 100% 90px; animation: cosSnow 3s linear infinite; }
.cos-e_glitch { background: linear-gradient(90deg, rgba(255,0,208,.25) 0 33%, rgba(0,229,255,.25) 33% 66%, rgba(182,255,0,.2) 66%); animation: cosGlitch 1.4s steps(5) infinite; mix-blend-mode: screen; }
@keyframes cosRainFx { to { background-position: -8px 40px; } }
@keyframes cosMaskDown { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 -100%; mask-position: 0 -100%; } }
.fx-reduced .pfc *::before { animation: none !important; }

/* ---------- Tienda: vista previa de los packs ---------- */
.pack-prev-btn { margin-top: 8px; width: 100%; }
.pack-mini { position: relative; height: 78px; margin: 0 0 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); }
.pack-mini .pfc-fx { position: absolute; inset: 0; z-index: 2; }
.pack-mini .pf-frame { position: absolute; left: 10px; bottom: 10px; z-index: 3; }
.pack-mini .cos-name { position: absolute; left: 76px; bottom: 22px; z-index: 3; font: 900 20px var(--display); text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.pv-modal { width: min(1000px, 96vw); max-height: 92vh; overflow: auto; text-align: left; }
.pv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pv-head h2 { margin: 0; font: 900 24px var(--display); }
.pv-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pv-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.pv-items .pf-item { cursor: pointer; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pv-foot .pack-price { font: 900 26px var(--display); color: var(--gold); }
@media (max-width: 820px) { .pv-grid { grid-template-columns: 1fr; } }

/* =====================================================================================
   COLECCION 3 (15-nov-2026): sets por tema, logros de kills, top 1-2-3, rangos y cajas. Generado.
   ===================================================================================== */
.cos-e_firestorm { background-image: radial-gradient(4px 4px at 54% 36%, #ffb000, transparent), radial-gradient(4px 4px at 74% 16%, #ff5a00, transparent), radial-gradient(3px 3px at 69% 74%, #ffe14d, transparent), radial-gradient(2px 2px at 75% 67%, #ff2000, transparent), radial-gradient(3px 3px at 42% 32%, #ffb000, transparent), radial-gradient(3px 3px at 6% 7%, #ff5a00, transparent), radial-gradient(4px 4px at 95% 29%, #ffe14d, transparent); background-size: 100% 80px; animation: cosRise 4s linear infinite; }
.cos-f_glitch::before { background: conic-gradient(#ff00d0, #00e5ff 25%, #0a0a14 30%, #b6ff00 55%, #ff00d0 60%, #0a0a14 80%, #00e5ff); animation: frSpin 1.2s linear infinite, frHue 2s steps(4) infinite; box-shadow: 0 0 18px #ff00d0, 0 0 34px -10px #ff00d0; }
.cos-n_glitchpro { background: linear-gradient(90deg, #ff00d0, #00e5ff, #b6ff00, #ff00d0); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 300% 100%; animation: cosShift 3.5s linear infinite; filter: drop-shadow(0 0 7px rgba(0,229,255,.6)); animation: cosShift 1.2s steps(6) infinite; }
.cos-e_bloodrain { background-image: radial-gradient(3px 3px at 25% 89%, #ff2030, transparent), radial-gradient(4px 4px at 64% 28%, #8a0010, transparent), radial-gradient(3px 3px at 44% 39%, #ff5a5f, transparent), radial-gradient(3px 3px at 91% 70%, #ff2030, transparent), radial-gradient(2px 2px at 62% 68%, #8a0010, transparent), radial-gradient(4px 4px at 86% 71%, #ff5a5f, transparent), radial-gradient(3px 3px at 20% 26%, #ff2030, transparent); background-size: 100% 70px; animation: cosSnow 5s linear infinite; }
.cos-e_neonlines { background: linear-gradient(165deg, transparent 40%, rgba(255,42,138,.8) 41%, transparent 42.5%); opacity: 0; animation: cosFlash 3s infinite; }
.cos-n_voidname { background: linear-gradient(90deg, #ffaa3c, #8a40ff 40%, #05030f 50%, #8a40ff 60%, #ffaa3c); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 300% 100%; animation: cosShift 3.5s linear infinite; filter: drop-shadow(0 0 7px rgba(138,64,255,.8));  }
.cos-e_voidpull { background: radial-gradient(ellipse at 50% 100%, rgba(138,64,255,.45), transparent 60%); animation: cosPulse 2.4s ease-in-out infinite; }
.cos-b_toxicwaste { background: radial-gradient(ellipse at 50% 110%, #b6ff00, #2e4419 45%, #0a1204 80%);  }
.cos-b_toxicwaste::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: 0 0 -60% 0; background-image: radial-gradient(4px 4px at 54% 36%, rgba(182,255,0,.7), transparent), radial-gradient(4px 4px at 74% 16%, rgba(125,255,58,.6), transparent), radial-gradient(3px 3px at 69% 74%, rgba(182,255,0,.7), transparent), radial-gradient(2px 2px at 75% 67%, rgba(125,255,58,.6), transparent), radial-gradient(3px 3px at 42% 32%, rgba(182,255,0,.7), transparent), radial-gradient(3px 3px at 6% 7%, rgba(125,255,58,.6), transparent), radial-gradient(4px 4px at 95% 29%, rgba(182,255,0,.7), transparent), radial-gradient(2px 2px at 76% 46%, rgba(125,255,58,.6), transparent); background-size: 100% 60%; animation: c3Rise 5s linear infinite; }
.cos-e_toxicfog { background: radial-gradient(ellipse at 50% 100%, rgba(150,255,60,.35), transparent 60%); animation: cosPulse 2.4s ease-in-out infinite; }
.cos-f_amber::before { background: conic-gradient(#ffb000, #7a3a00, #ffe14d, #c46a00, #ffb000); animation: frSpin 6s linear infinite; box-shadow: 0 0 18px #ffb000, 0 0 34px -10px #ffb000; }
.cos-f_amber::after { content: '🦟'; position: absolute; z-index: 2; top: -8px; right: -4px; padding: 0; border-radius: 999px; font: 900 18px var(--display); letter-spacing: .5px; color: #1a1000; background: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ffb000; white-space: nowrap; }
.pf-frame.sm.cos-f_amber::after, .pf-frame.md.cos-f_amber::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-n_amber { background: linear-gradient(180deg, #fff2a8, #ffb000 50%, #7a3a00); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 250% 100%; animation: cosShine 2.4s linear infinite; filter: drop-shadow(0 0 7px rgba(255,176,0,.6));  }
.cos-b_thunder { background: radial-gradient(ellipse at 50% 0%, #3a4a6a, #10141c 70%);  }
.cos-b_thunder::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(168deg, transparent 44%, rgba(200,230,255,.95) 45%, transparent 46.5%), linear-gradient(192deg, transparent 62%, rgba(200,230,255,.95) 63%, transparent 64%); opacity: 0; animation: cosFlash 3.6s infinite; }
.cos-e_prismlight { background-image: radial-gradient(2px 2px at 55% 15%, #ff5a5f, transparent), radial-gradient(2px 2px at 45% 51%, #ffcf4a, transparent), radial-gradient(3px 3px at 84% 58%, #35e06a, transparent), radial-gradient(3px 3px at 31% 75%, #38cdf5, transparent), radial-gradient(2px 2px at 12% 50%, #c58bff, transparent), radial-gradient(3px 3px at 65% 19%, #ff5a5f, transparent), radial-gradient(2px 2px at 49% 21%, #ffcf4a, transparent), radial-gradient(2px 2px at 90% 92%, #35e06a, transparent), radial-gradient(2px 2px at 45% 91%, #38cdf5, transparent); animation: cosTwinkle 1.4s ease-in-out infinite; }
.cos-b_glacier { background: linear-gradient(180deg, #e8fbff 0%, #8fd8f5 35%, #2a6a9a 70%, #0a2a44); background-image: linear-gradient(160deg, transparent 55%, rgba(255,255,255,.5) 56%, transparent 60%), linear-gradient(180deg, #e8fbff 0%, #8fd8f5 35%, #2a6a9a 70%, #0a2a44); }
.cos-b_glacier::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, rgba(160,255,240,.35) 35%, transparent 50%, rgba(160,255,240,.35) 65%, transparent 80%); background-size: 200% 100%; animation: cosShift 7s ease-in-out infinite; mix-blend-mode: screen; }
.cos-f_glacier::before { background: conic-gradient(#ffffff, #bff4ff, #6fb8ff, #ffffff, #38cdf5, #ffffff); animation: frSpin 7s linear infinite; box-shadow: 0 0 18px #bff4ff, 0 0 34px -10px #bff4ff; }
.cos-f_glacier::after { content: '❄️'; position: absolute; z-index: 2; top: -8px; right: -4px; padding: 0; border-radius: 999px; font: 900 18px var(--display); letter-spacing: .5px; color: #1a1000; background: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #bff4ff; white-space: nowrap; }
.pf-frame.sm.cos-f_glacier::after, .pf-frame.md.cos-f_glacier::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-n_glacier { background: linear-gradient(180deg, #ffffff, #bff4ff 45%, #38cdf5); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 250% 100%; animation: cosShine 2.4s linear infinite; filter: drop-shadow(0 0 7px rgba(111,227,255,.7));  }
.cos-e_snowstorm { background-image: radial-gradient(3px 3px at 41% 87%, #ffffff, transparent), radial-gradient(3px 3px at 40% 56%, #e8fbff, transparent), radial-gradient(3px 3px at 72% 40%, #bff4ff, transparent), radial-gradient(2px 2px at 83% 77%, #ffffff, transparent), radial-gradient(3px 3px at 22% 23%, #e8fbff, transparent), radial-gradient(3px 3px at 15% 6%, #bff4ff, transparent), radial-gradient(2px 2px at 11% 65%, #ffffff, transparent); background-size: 120px 100%; animation: c3DriftFx 6s linear infinite; }
.cos-b_canopy { background: radial-gradient(circle at 15% 20%, #4f8a2a 0 16%, transparent 17%), radial-gradient(circle at 80% 15%, #3a6a20 0 18%, transparent 19%), radial-gradient(circle at 55% 0%, #5a9a30 0 14%, transparent 15%), linear-gradient(180deg, #1a3a10, #0a1806);  }
.cos-b_canopy::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: auto; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(230,255,160,.18) 0 8deg, transparent 8deg 30deg); animation: cosSpinC 14s linear infinite; opacity: .55; }
.cos-f_jungle::before { background: conic-gradient(#2f6a20, #a3d94a, #1a3a10, #7dbb3a, #2f6a20); animation: frSpin 8s linear infinite; box-shadow: 0 0 18px #7dbb3a, 0 0 34px -10px #7dbb3a; }
.cos-f_jungle::after { content: '🌿'; position: absolute; z-index: 2; top: -8px; left: -4px; padding: 0; border-radius: 999px; font: 900 18px var(--display); letter-spacing: .5px; color: #1a1000; background: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #7dbb3a; white-space: nowrap; }
.pf-frame.sm.cos-f_jungle::after, .pf-frame.md.cos-f_jungle::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-n_jungle { background: linear-gradient(180deg, #e6ff9a, #7dbb3a 55%, #2f5a18); -webkit-background-clip: text; background-clip: text; color: transparent;  filter: drop-shadow(0 0 7px rgba(125,187,58,.6));  }
.cos-e_jungle { background-image: radial-gradient(3px 3px at 26% 69%, #e6ff4d, transparent), radial-gradient(2px 2px at 35% 62%, #a3d94a, transparent), radial-gradient(3px 3px at 59% 23%, #e6ff4d, transparent), radial-gradient(4px 4px at 46% 78%, #e6ff4d, transparent), radial-gradient(4px 4px at 32% 86%, #a3d94a, transparent), radial-gradient(4px 4px at 55% 83%, #e6ff4d, transparent), radial-gradient(3px 3px at 63% 18%, #e6ff4d, transparent), radial-gradient(4px 4px at 94% 18%, #a3d94a, transparent), radial-gradient(3px 3px at 94% 30%, #e6ff4d, transparent); animation: cosTwinkle 1.4s ease-in-out infinite; }
.cos-b_throne { background: radial-gradient(ellipse at 50% 0, rgba(255,215,94,.4), transparent 55%), repeating-linear-gradient(90deg, #3a0a4a 0 26px, #4a1260 26px 52px);  }
.cos-b_throne::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,230,150,.35) 47%, transparent 58%); background-size: 300% 100%; animation: cosShine 4.5s linear infinite; }
.cos-f_royal::before { background: conic-gradient(#ffd75e, #8a40ff, #fff2a8, #5a1a9a, #ffd75e); animation: frSpin 5s linear infinite; box-shadow: 0 0 18px #ffcf4a, 0 0 34px -10px #ffcf4a; }
.cos-f_royal::after { content: '👑'; position: absolute; z-index: 2; top: -18px; left: 50%; transform: translateX(-50%) rotate(-6deg); padding: 0; border-radius: 999px; font: 900 22px var(--display); letter-spacing: .5px; color: #1a1000; background: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ffcf4a; white-space: nowrap; }
.pf-frame.sm.cos-f_royal::after, .pf-frame.md.cos-f_royal::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-n_royal { background: linear-gradient(110deg, #c49a1f 30%, #fff6c8 45%, #c58bff 55%, #c49a1f 70%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 250% 100%; animation: cosShine 2.4s linear infinite; filter: drop-shadow(0 0 7px rgba(197,139,255,.6));  }
.cos-e_confetti { background-image: radial-gradient(4px 4px at 11% 50%, #ffcf4a, transparent), radial-gradient(3px 3px at 30% 68%, #c58bff, transparent), radial-gradient(3px 3px at 47% 95%, #ff5a5f, transparent), radial-gradient(3px 3px at 8% 79%, #38cdf5, transparent), radial-gradient(2px 2px at 42% 59%, #35e06a, transparent), radial-gradient(2px 2px at 5% 70%, #ffcf4a, transparent), radial-gradient(3px 3px at 26% 62%, #c58bff, transparent); background-size: 100% 70px; animation: cosSnow 6s linear infinite; }
.cos-b_volcano { background: radial-gradient(ellipse 30% 40% at 50% 100%, #ffb000, #ff3a00 40%, transparent 70%), linear-gradient(180deg, #1a0a08, #3a1008 60%, #120403);  }
.cos-b_volcano::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: 0 0 -60% 0; background-image: radial-gradient(2px 2px at 70% 34%, #ffb000, transparent), radial-gradient(3px 3px at 50% 45%, #ff5a00, transparent), radial-gradient(3px 3px at 7% 76%, #ffe14d, transparent), radial-gradient(2px 2px at 68% 74%, #ffb000, transparent), radial-gradient(4px 4px at 92% 77%, #ff5a00, transparent), radial-gradient(3px 3px at 26% 32%, #ffe14d, transparent), radial-gradient(4px 4px at 87% 67%, #ffb000, transparent), radial-gradient(4px 4px at 42% 40%, #ff5a00, transparent); background-size: 100% 60%; animation: c3Rise 5s linear infinite; }
.cos-f_magma::before { background: conic-gradient(#2a0800, #ff3a00, #ffb000, #2a0800, #ff5a00, #2a0800); animation: frSpin 2.2s linear infinite; box-shadow: 0 0 18px #ff3a00, 0 0 34px -10px #ff3a00; }
.cos-n_magma { background: linear-gradient(0deg, #3a0a02, #ff3a00 40%, #ffb000 70%, #ffe14d); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 100% 200%; animation: cosFireText 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 7px rgba(255,90,0,.7));  }
.cos-e_lavadrops { background-image: radial-gradient(2px 2px at 86% 32%, #ff5a00, transparent), radial-gradient(2px 2px at 26% 73%, #ffb000, transparent), radial-gradient(3px 3px at 34% 77%, #ff2000, transparent), radial-gradient(4px 4px at 61% 81%, #ff5a00, transparent), radial-gradient(3px 3px at 52% 32%, #ffb000, transparent), radial-gradient(3px 3px at 45% 58%, #ff2000, transparent), radial-gradient(4px 4px at 78% 16%, #ff5a00, transparent); background-size: 100% 70px; animation: cosSnow 7s linear infinite; }
.cos-b_haunted { background: radial-gradient(circle at 78% 28%, #e8f0ff 0 7%, transparent 8%), linear-gradient(180deg, #0a0c18, #1a2030 60%, #0a0c14);  }
.cos-b_haunted::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: 0 -60% 0 0; background-image: radial-gradient(2px 2px at 55% 15%, rgba(200,220,255,.25), transparent), radial-gradient(2px 2px at 45% 51%, rgba(160,190,255,.2), transparent), radial-gradient(3px 3px at 84% 58%, rgba(200,220,255,.25), transparent), radial-gradient(3px 3px at 31% 75%, rgba(160,190,255,.2), transparent), radial-gradient(2px 2px at 12% 50%, rgba(200,220,255,.25), transparent), radial-gradient(3px 3px at 65% 19%, rgba(160,190,255,.2), transparent), radial-gradient(2px 2px at 49% 21%, rgba(200,220,255,.25), transparent), radial-gradient(2px 2px at 90% 92%, rgba(160,190,255,.2), transparent); background-size: 60% 100%; animation: c3Drift 9s linear infinite; }
.cos-f_spectral::before { background: conic-gradient(rgba(200,230,255,.9), rgba(120,160,255,.2), rgba(200,230,255,.9), rgba(120,160,255,.2)); animation: frSpin 3s linear infinite, c3Fade 3s ease-in-out infinite; box-shadow: 0 0 18px #a0c0ff, 0 0 34px -10px #a0c0ff; }
.cos-n_ghost { background: linear-gradient(180deg, #ffffff, #a8c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: cosPulse 1.8s ease-in-out infinite; filter: drop-shadow(0 0 7px rgba(160,190,255,.8));  }
.cos-e_wisps { background-image: radial-gradient(3px 3px at 72% 13%, rgba(160,220,255,.9), transparent), radial-gradient(3px 3px at 21% 79%, rgba(200,255,240,.8), transparent), radial-gradient(3px 3px at 22% 60%, rgba(160,220,255,.9), transparent), radial-gradient(3px 3px at 23% 82%, rgba(200,255,240,.8), transparent), radial-gradient(4px 4px at 62% 95%, rgba(160,220,255,.9), transparent), radial-gradient(3px 3px at 85% 45%, rgba(200,255,240,.8), transparent), radial-gradient(4px 4px at 40% 59%, rgba(160,220,255,.9), transparent); background-size: 100% 80px; animation: cosRise 3s linear infinite; }
.cos-f_k100::before { background: conic-gradient(#ff2030, #3a0008, #ff5a5f, #3a0008, #ff2030); animation: frSpin 4s linear infinite; box-shadow: 0 0 18px #ff2030, 0 0 34px -10px #ff2030; }
.cos-f_k100::after { content: '💀 100'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 12px var(--display); letter-spacing: .5px; color: #fff; background: linear-gradient(90deg,#ff5a5f,#8a0010); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ff2030; white-space: nowrap; }
.pf-frame.sm.cos-f_k100::after, .pf-frame.md.cos-f_k100::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-f_k500::before { background: conic-gradient(#ffcf4a, #3a2600, #ff5a5f, #ffcf4a, #3a2600, #ffcf4a); animation: frSpin 3s linear infinite; box-shadow: 0 0 18px #ffcf4a, 0 0 34px -10px #ffcf4a; }
.cos-f_k500::after { content: '☠️ 500'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 12px var(--display); letter-spacing: .5px; color: #1a0800; background: linear-gradient(90deg,#ffe14d,#ff5a00); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ffcf4a; white-space: nowrap; }
.pf-frame.sm.cos-f_k500::after, .pf-frame.md.cos-f_k500::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-f_k1000::before { background: conic-gradient(#ffffff, #ff00d0, #ffcf4a, #00e5ff, #ffffff); animation: frSpin 1.6s linear infinite, frHue 4s linear infinite; box-shadow: 0 0 18px #ff00d0, 0 0 34px -10px #ff00d0; }
.cos-f_k1000::after { content: '👑 1000'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 12px var(--display); letter-spacing: .5px; color: #1a0010; background: linear-gradient(90deg,#fff,#ffcf4a,#ff00d0); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ff00d0; white-space: nowrap; }
.pf-frame.sm.cos-f_k1000::after, .pf-frame.md.cos-f_k1000::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-b_k100 { background: radial-gradient(ellipse at 50% 120%, #8a0010, transparent 60%), linear-gradient(180deg, #120004, #2a0008);  }
.cos-b_k100::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 60%, rgba(255,32,48,.35), transparent 60%); animation: cosPulse 3s ease-in-out infinite; }
.cos-b_k100::before { content: '100'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 900 64px var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255,90,95,.55); letter-spacing: 2px; }
.cos-b_k500 { background: radial-gradient(ellipse at 50% 120%, #ff8a00, transparent 60%), linear-gradient(180deg, #1a0a00, #3a1800);  }
.cos-b_k500::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: auto; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255,207,74,.22) 0 8deg, transparent 8deg 30deg); animation: cosSpinC 14s linear infinite; opacity: .55; }
.cos-b_k500::before { content: '500'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 1; font: 900 70px var(--display); background: linear-gradient(180deg,#fff2a8,#ffb000); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255,176,0,.6)); }
.cos-b_k1000 { background: conic-gradient(from 0deg at 50% 50%, #2a0030, #ff00d0, #2a0030, #00e5ff, #2a0030); animation: cosHueFull 10s linear infinite; }
.cos-b_k1000::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(4px 4px at 11% 50%, #fff, transparent), radial-gradient(3px 3px at 30% 68%, #ffcf4a, transparent), radial-gradient(3px 3px at 47% 95%, #fff, transparent), radial-gradient(3px 3px at 8% 79%, #ffcf4a, transparent), radial-gradient(2px 2px at 42% 59%, #fff, transparent), radial-gradient(2px 2px at 5% 70%, #ffcf4a, transparent), radial-gradient(3px 3px at 26% 62%, #fff, transparent), radial-gradient(2px 2px at 51% 71%, #ffcf4a, transparent), radial-gradient(2px 2px at 29% 44%, #fff, transparent), radial-gradient(4px 4px at 87% 20%, #ffcf4a, transparent); animation: cosTwinkle 2.6s ease-in-out infinite; }
.cos-b_k1000::before { content: '1000'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 1; font: 900 70px var(--display); color: #fff; text-shadow: 0 0 18px #ff00d0, 0 0 4px #fff; }
.cos-f_top1::before { background: conic-gradient(#fff6c8, #ffcf4a, #ff9f1a, #fff6c8, #ffcf4a); animation: frSpin 2.5s linear infinite; box-shadow: 0 0 18px #ffcf4a, 0 0 34px -10px #ffcf4a; }
.cos-f_top1::after { content: '🥇 TOP 1'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 11px var(--display); letter-spacing: .5px; color: #2a1a00; background: linear-gradient(90deg,#fff2a8,#ffb000); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ffcf4a; white-space: nowrap; }
.pf-frame.sm.cos-f_top1::after, .pf-frame.md.cos-f_top1::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-f_top2::before { background: conic-gradient(#ffffff, #cfdbe4, #7a8a96, #ffffff, #cfdbe4); animation: frSpin 3s linear infinite; box-shadow: 0 0 18px #dfe7ee, 0 0 34px -10px #dfe7ee; }
.cos-f_top2::after { content: '🥈 TOP 2'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 11px var(--display); letter-spacing: .5px; color: #1a2028; background: linear-gradient(90deg,#ffffff,#a9b6c2); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #dfe7ee; white-space: nowrap; }
.pf-frame.sm.cos-f_top2::after, .pf-frame.md.cos-f_top2::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-f_top3::before { background: conic-gradient(#f0c08a, #b9794a, #5a3010, #f0c08a, #b9794a); animation: frSpin 3.5s linear infinite; box-shadow: 0 0 18px #d08f4f, 0 0 34px -10px #d08f4f; }
.cos-f_top3::after { content: '🥉 TOP 3'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 11px var(--display); letter-spacing: .5px; color: #2a1406; background: linear-gradient(90deg,#f0c08a,#a0602a); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #d08f4f; white-space: nowrap; }
.pf-frame.sm.cos-f_top3::after, .pf-frame.md.cos-f_top3::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-b_top1 { background: radial-gradient(circle at 50% 40%, rgba(255,215,94,.6), transparent 45%), linear-gradient(180deg, #2a1a00, #0a0600);  }
.cos-b_top1::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: auto; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255,215,94,.25) 0 8deg, transparent 8deg 30deg); animation: cosSpinC 14s linear infinite; opacity: .55; }
.cos-b_top1::before { content: '🏆'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 64px; z-index: 1; filter: drop-shadow(0 0 14px rgba(255,207,74,.8)); animation: cosBob 3s ease-in-out infinite; }
.cos-f_rk_bronce::before { background: conic-gradient(#d08f4f, #5a3010, #ffffff, #d08f4f, #5a3010, #d08f4f); animation: frSpin 6s linear infinite; box-shadow: 0 0 18px #d08f4f, 0 0 34px -10px #d08f4f; }
.cos-f_rk_bronce::after { content: '🐾 BRONCE'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 10px var(--display); letter-spacing: .5px; color: #120c04; background: linear-gradient(90deg, #d08f4f, #5a3010); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #d08f4f; white-space: nowrap; }
.pf-frame.sm.cos-f_rk_bronce::after, .pf-frame.md.cos-f_rk_bronce::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-f_rk_plata::before { background: conic-gradient(#cfdbe4, #4a5560, #ffffff, #cfdbe4, #4a5560, #cfdbe4); animation: frSpin 5.5s linear infinite; box-shadow: 0 0 18px #cfdbe4, 0 0 34px -10px #cfdbe4; }
.cos-f_rk_plata::after { content: '🛡️ PLATA'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 10px var(--display); letter-spacing: .5px; color: #120c04; background: linear-gradient(90deg, #cfdbe4, #4a5560); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #cfdbe4; white-space: nowrap; }
.pf-frame.sm.cos-f_rk_plata::after, .pf-frame.md.cos-f_rk_plata::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-f_rk_oro::before { background: conic-gradient(#ffcf4a, #6b4f14, #ffffff, #ffcf4a, #6b4f14, #ffcf4a); animation: frSpin 5s linear infinite; box-shadow: 0 0 18px #ffcf4a, 0 0 34px -10px #ffcf4a; }
.cos-f_rk_oro::after { content: '⚔️ ORO'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 10px var(--display); letter-spacing: .5px; color: #120c04; background: linear-gradient(90deg, #ffcf4a, #6b4f14); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ffcf4a; white-space: nowrap; }
.pf-frame.sm.cos-f_rk_oro::after, .pf-frame.md.cos-f_rk_oro::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-b_rk_oro { background: radial-gradient(ellipse at 50% 120%, #ffcf4a, transparent 60%), linear-gradient(180deg, #6b4f14, #05080c);  }
.cos-b_rk_oro::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 47%, transparent 58%); background-size: 300% 100%; animation: cosShine 4.5s linear infinite; }
.cos-b_rk_oro::before { content: '⚔️'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 58px; z-index: 1; filter: drop-shadow(0 0 12px #ffcf4a); }
.cos-f_rk_platino::before { background: conic-gradient(#7ee8d8, #1a4a44, #ffffff, #7ee8d8, #1a4a44, #7ee8d8); animation: frSpin 4.5s linear infinite; box-shadow: 0 0 18px #7ee8d8, 0 0 34px -10px #7ee8d8; }
.cos-f_rk_platino::after { content: '🔱 PLATINO'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 10px var(--display); letter-spacing: .5px; color: #120c04; background: linear-gradient(90deg, #7ee8d8, #1a4a44); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #7ee8d8; white-space: nowrap; }
.pf-frame.sm.cos-f_rk_platino::after, .pf-frame.md.cos-f_rk_platino::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-b_rk_platino { background: radial-gradient(ellipse at 50% 120%, #7ee8d8, transparent 60%), linear-gradient(180deg, #1a4a44, #05080c);  }
.cos-b_rk_platino::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 47%, transparent 58%); background-size: 300% 100%; animation: cosShine 4.5s linear infinite; }
.cos-b_rk_platino::before { content: '🔱'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 58px; z-index: 1; filter: drop-shadow(0 0 12px #7ee8d8); }
.cos-f_rk_diamante::before { background: conic-gradient(#6fb8ff, #10284a, #ffffff, #6fb8ff, #10284a, #6fb8ff); animation: frSpin 4s linear infinite; box-shadow: 0 0 18px #6fb8ff, 0 0 34px -10px #6fb8ff; }
.cos-f_rk_diamante::after { content: '💎 DIAMANTE'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 10px var(--display); letter-spacing: .5px; color: #fff; background: linear-gradient(90deg, #6fb8ff, #10284a); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #6fb8ff; white-space: nowrap; }
.pf-frame.sm.cos-f_rk_diamante::after, .pf-frame.md.cos-f_rk_diamante::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-b_rk_diamante { background: radial-gradient(ellipse at 50% 120%, #6fb8ff, transparent 60%), linear-gradient(180deg, #10284a, #05080c);  }
.cos-b_rk_diamante::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 47%, transparent 58%); background-size: 300% 100%; animation: cosShine 4.5s linear infinite; }
.cos-b_rk_diamante::before { content: '💎'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 58px; z-index: 1; filter: drop-shadow(0 0 12px #6fb8ff); }
.cos-f_rk_corona::before { background: conic-gradient(#c58bff, #2a0a4a, #ffffff, #c58bff, #2a0a4a, #c58bff); animation: frSpin 3.5s linear infinite; box-shadow: 0 0 18px #c58bff, 0 0 34px -10px #c58bff; }
.cos-f_rk_corona::after { content: '👑 CORONA'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 10px var(--display); letter-spacing: .5px; color: #fff; background: linear-gradient(90deg, #c58bff, #2a0a4a); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #c58bff; white-space: nowrap; }
.pf-frame.sm.cos-f_rk_corona::after, .pf-frame.md.cos-f_rk_corona::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-b_rk_corona { background: radial-gradient(ellipse at 50% 120%, #c58bff, transparent 60%), linear-gradient(180deg, #2a0a4a, #05080c);  }
.cos-b_rk_corona::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: auto; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, #c58bff33 0 8deg, transparent 8deg 30deg); animation: cosSpinC 14s linear infinite; opacity: .55; }
.cos-b_rk_corona::before { content: '👑'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 58px; z-index: 1; filter: drop-shadow(0 0 12px #c58bff); }
.cos-f_rk_alfa::before { background: conic-gradient(#ff5a5f, #3a0008, #ffffff, #ff5a5f, #3a0008, #ff5a5f); animation: frSpin 3s linear infinite, frHue 6s linear infinite; box-shadow: 0 0 18px #ff5a5f, 0 0 34px -10px #ff5a5f; }
.cos-f_rk_alfa::after { content: '🔥 ALFA'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 10px var(--display); letter-spacing: .5px; color: #fff; background: linear-gradient(90deg, #ff5a5f, #3a0008); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ff5a5f; white-space: nowrap; }
.pf-frame.sm.cos-f_rk_alfa::after, .pf-frame.md.cos-f_rk_alfa::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-b_rk_alfa { background: radial-gradient(ellipse at 50% 120%, #ff5a5f, transparent 60%), linear-gradient(180deg, #3a0008, #05080c);  }
.cos-b_rk_alfa::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: auto; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, #ff5a5f33 0 8deg, transparent 8deg 30deg); animation: cosSpinC 14s linear infinite; opacity: .55; }
.cos-b_rk_alfa::before { content: '🔥'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 58px; z-index: 1; filter: drop-shadow(0 0 12px #ff5a5f); }
.cos-f_rk_apex::before { background: conic-gradient(#ffd75e, #3a2600, #ffffff, #ffd75e, #3a2600, #ffd75e); animation: frSpin 2.5s linear infinite, frHue 6s linear infinite; box-shadow: 0 0 18px #ffd75e, 0 0 34px -10px #ffd75e; }
.cos-f_rk_apex::after { content: '🦖 APEX'; position: absolute; z-index: 2; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font: 900 10px var(--display); letter-spacing: .5px; color: #fff; background: linear-gradient(90deg, #ffd75e, #3a2600); box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ffd75e; white-space: nowrap; }
.pf-frame.sm.cos-f_rk_apex::after, .pf-frame.md.cos-f_rk_apex::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-b_rk_apex { background: radial-gradient(ellipse at 50% 120%, #ffd75e, transparent 60%), linear-gradient(180deg, #3a2600, #05080c);  }
.cos-b_rk_apex::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: auto; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, #ffd75e33 0 8deg, transparent 8deg 30deg); animation: cosSpinC 14s linear infinite; opacity: .55; }
.cos-b_rk_apex::before { content: '🦖'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 58px; z-index: 1; filter: drop-shadow(0 0 12px #ffd75e); }
.cos-n_rk_diamante { background: linear-gradient(90deg, #6fb8ff, #ffffff, #6fb8ff); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 250% 100%; animation: cosShine 2.4s linear infinite; filter: drop-shadow(0 0 7px rgba(111,184,255,.8));  }
.cos-n_rk_alfa { background: linear-gradient(0deg, #8a0010, #ff5a5f 45%, #ffcf4a); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 100% 200%; animation: cosFireText 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 7px rgba(255,90,95,.8));  }
.cos-n_rk_apex { background: linear-gradient(90deg, #ffd75e, #ffffff, #ff9f1a, #ffd75e); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 300% 100%; animation: cosShift 3.5s linear infinite; filter: drop-shadow(0 0 7px rgba(255,215,94,.9)); letter-spacing: .5px; }
.cos-e_rk_apex { background-image: radial-gradient(3px 3px at 57% 85%, #ffd75e, transparent), radial-gradient(3px 3px at 16% 85%, #ffffff, transparent), radial-gradient(3px 3px at 10% 42%, #ff9f1a, transparent), radial-gradient(2px 2px at 76% 84%, #ffd75e, transparent), radial-gradient(2px 2px at 72% 68%, #ffffff, transparent), radial-gradient(3px 3px at 35% 32%, #ff9f1a, transparent), radial-gradient(2px 2px at 93% 13%, #ffd75e, transparent); background-size: 100% 80px; animation: cosRise 4s linear infinite; }
.cos-b_dusk { background: linear-gradient(180deg, #2a1a3a, #8a4a5a 60%, #ffb07a);  }
.cos-f_wood::before { background: conic-gradient(#6a4a2a, #3a2614, #8a6a3a, #3a2614, #6a4a2a); animation: frSpin 20s linear infinite;  }
.cos-n_moss { background: linear-gradient(180deg, #c6e8a0, #5a8a3a); -webkit-background-clip: text; background-clip: text; color: transparent;    }
.cos-e_dust { background-image: radial-gradient(3px 3px at 42% 67%, rgba(255,240,200,.5), transparent), radial-gradient(4px 4px at 11% 90%, rgba(255,255,255,.4), transparent), radial-gradient(3px 3px at 87% 24%, rgba(255,240,200,.5), transparent), radial-gradient(3px 3px at 38% 85%, rgba(255,255,255,.4), transparent), radial-gradient(3px 3px at 82% 41%, rgba(255,240,200,.5), transparent), radial-gradient(4px 4px at 75% 19%, rgba(255,255,255,.4), transparent), radial-gradient(3px 3px at 55% 57%, rgba(255,240,200,.5), transparent); background-size: 120px 100%; animation: c3DriftFx 6s linear infinite; }
.cos-b_lagoon { background: linear-gradient(180deg, #0a6a7a, #38cdf5 55%, #e8fbff);  }
.cos-b_lagoon::after { content: ''; position: absolute; inset: 0; pointer-events: none; inset: 45% -50% 0; background: repeating-radial-gradient(ellipse at 50% 0, rgba(255,255,255,.22) 0 3px, transparent 4px 22px); animation: cosWave 6s linear infinite; }
.cos-f_coral::before { background: conic-gradient(#ff7a8a, #ffd0d8, #ff4a6a, #ffd0d8, #ff7a8a); animation: frSpin 9s linear infinite; box-shadow: 0 0 18px #ff7a8a, 0 0 34px -10px #ff7a8a; }
.cos-n_coral { background: linear-gradient(180deg, #ffe0e6, #ff7a8a); -webkit-background-clip: text; background-clip: text; color: transparent;  filter: drop-shadow(0 0 7px rgba(255,122,138,.5));  }
.cos-e_glow { background: radial-gradient(ellipse at 50% 100%, rgba(56,205,245,.35), transparent 60%); animation: cosPulse 2.4s ease-in-out infinite; }
.cos-b_nebula { background: radial-gradient(ellipse at 30% 40%, rgba(255,79,216,.55), transparent 50%), radial-gradient(ellipse at 70% 60%, rgba(56,205,245,.5), transparent 50%), #05030f;  }
.cos-b_nebula::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(4px 4px at 58% 65%, #fff, transparent), radial-gradient(3px 3px at 77% 29%, #ffd0f0, transparent), radial-gradient(2px 2px at 25% 26%, #fff, transparent), radial-gradient(3px 3px at 31% 92%, #ffd0f0, transparent), radial-gradient(4px 4px at 41% 86%, #fff, transparent), radial-gradient(3px 3px at 94% 44%, #ffd0f0, transparent), radial-gradient(2px 2px at 47% 5%, #fff, transparent), radial-gradient(2px 2px at 26% 6%, #ffd0f0, transparent), radial-gradient(3px 3px at 71% 84%, #fff, transparent), radial-gradient(2px 2px at 38% 6%, #ffd0f0, transparent); animation: cosTwinkle 2.6s ease-in-out infinite; }
.cos-f_crystal::before { background: conic-gradient(#ffffff, #c0f6ff, #ff4fd8, #ffffff, #6fe3ff, #ffffff); animation: frSpin 3s linear infinite; box-shadow: 0 0 18px #c0f6ff, 0 0 34px -10px #c0f6ff; }
.cos-e_aura { background: radial-gradient(ellipse at 50% 100%, rgba(197,139,255,.4), transparent 60%); animation: cosPulse 2.4s ease-in-out infinite; }
.cos-b_phoenix { background: radial-gradient(ellipse at 50% 110%, #ffe14d, #ff5a00 35%, #8a0010 65%, #1a0004);  }
.cos-b_phoenix::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 20% 100%, rgba(255,200,60,.75), transparent 40%), radial-gradient(ellipse at 70% 100%, rgba(255,200,60,.75), transparent 45%); transform-origin: bottom; animation: cosFlicker .3s steps(2) infinite alternate; }
.cos-b_phoenix::before { content: '🐦‍🔥'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 60px; z-index: 1; filter: drop-shadow(0 0 16px #ff8a00); animation: cosBob 2.6s ease-in-out infinite; }
.cos-f_phoenix::before { background: conic-gradient(#ffe14d, #ff5a00, #8a0010, #ff5a00, #ffe14d); animation: frSpin 1.4s linear infinite; box-shadow: 0 0 18px #ff8a00, 0 0 34px -10px #ff8a00; }
.cos-f_phoenix::after { content: '🔥'; position: absolute; z-index: 2; top: -12px; left: 50%; transform: translateX(-50%); padding: 0; border-radius: 999px; font: 900 20px var(--display); letter-spacing: .5px; color: #1a1000; background: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 12px #ff8a00; white-space: nowrap; }
.pf-frame.sm.cos-f_phoenix::after, .pf-frame.md.cos-f_phoenix::after { font-size: 8px; padding: 0 4px; bottom: -6px; }
.cos-n_phoenix { background: linear-gradient(0deg, #8a0010, #ff5a00 40%, #ffe14d 75%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 100% 200%; animation: cosFireText 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 7px rgba(255,138,0,.8));  }
.cos-e_phoenix { background-image: radial-gradient(3px 3px at 88% 11%, #ffe14d, transparent), radial-gradient(3px 3px at 87% 18%, #ff8a00, transparent), radial-gradient(2px 2px at 50% 61%, #ff2000, transparent), radial-gradient(3px 3px at 16% 89%, #ffe14d, transparent), radial-gradient(3px 3px at 21% 50%, #ff8a00, transparent), radial-gradient(3px 3px at 14% 70%, #ff2000, transparent), radial-gradient(4px 4px at 32% 8%, #ffe14d, transparent); background-size: 100% 80px; animation: cosRise 5s linear infinite; }
@keyframes c3Rise { to { transform: translateY(-40%); } }
@keyframes c3Fall { to { transform: translateY(40%); } }
@keyframes c3Drift { to { transform: translateX(-40%); } }
@keyframes c3DriftFx { to { background-position: 120px 0; } }
@keyframes c3Fade { 50% { opacity: .45; } }


/* ===== Insignia de suscripcion (perfil) — colores de cada nivel como en la tienda ===== */
.sub-badge{--c1:#e08a3c;--c2:#7a3b12;--g:#ff9a4a;position:relative;display:inline-flex;align-items:center;gap:10px;margin-top:10px;padding:8px 14px 8px 10px;
  border-radius:14px;overflow:hidden;isolation:isolate;color:#fff;border:1.5px solid var(--c1);
  background:linear-gradient(135deg,color-mix(in srgb,var(--c2) 85%,#000) 0%,#0b1118 70%);
  box-shadow:0 0 0 1px #0006 inset,0 0 18px color-mix(in srgb,var(--g) 45%,transparent);animation:sbPulse 3.2s ease-in-out infinite}
.sub-badge.tier-2{--c1:#35d07f;--c2:#0d5c35;--g:#4dffa0}
.sub-badge.tier-3{--c1:#3fa9ff;--c2:#0f3f7a;--g:#5cc2ff}
.sub-badge.tier-4{--c1:#b46bff;--c2:#3f147a;--g:#c98cff}
.sub-badge.tier-5{--c1:#ffd34d;--c2:#8a5a00;--g:#ffe27a;border-width:2px}
.sub-badge .sb-glow{position:absolute;inset:-40%;z-index:-1;background:conic-gradient(from 0deg,transparent 0 70%,color-mix(in srgb,var(--g) 55%,transparent) 80%,transparent 90%);animation:sbSpin 6s linear infinite;opacity:.55}
.sub-badge .sb-shine{position:absolute;top:0;bottom:0;width:40%;left:-60%;z-index:0;background:linear-gradient(100deg,transparent,#ffffff40,transparent);transform:skewX(-20deg);animation:sbShine 3.6s ease-in-out infinite}
.sub-badge .sb-ico{position:relative;z-index:1;font-size:22px;filter:drop-shadow(0 0 6px var(--g));animation:sbBob 2.4s ease-in-out infinite}
.sub-badge .sb-txt{position:relative;z-index:1;display:flex;flex-direction:column;line-height:1.1}
.sub-badge .sb-txt small{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:color-mix(in srgb,var(--c1) 70%,#fff);opacity:.9}
.sub-badge .sb-txt b{font-size:16px;letter-spacing:2px;background:linear-gradient(180deg,#fff 10%,var(--c1) 90%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 8px color-mix(in srgb,var(--g) 60%,transparent))}
.sub-badge .sb-crowns{position:relative;z-index:1;display:flex;gap:3px;margin-left:4px}
.sub-badge .sb-crowns i{width:12px;height:9px;background:#ffffff22;clip-path:polygon(0 100%,8% 20%,30% 60%,50% 0,70% 60%,92% 20%,100% 100%)}
.sub-badge .sb-crowns i.on{background:var(--c1);filter:drop-shadow(0 0 4px var(--g));animation:sbCrown 2.8s ease-in-out infinite}
.sub-badge .sb-crowns i.on:nth-child(2){animation-delay:.15s}.sub-badge .sb-crowns i.on:nth-child(3){animation-delay:.3s}
.sub-badge .sb-crowns i.on:nth-child(4){animation-delay:.45s}.sub-badge .sb-crowns i.on:nth-child(5){animation-delay:.6s}
.sub-badge.tier-5 .sb-txt b{animation:sbGold 2.6s ease-in-out infinite}
@keyframes sbPulse{0%,100%{box-shadow:0 0 0 1px #0006 inset,0 0 14px color-mix(in srgb,var(--g) 35%,transparent)}50%{box-shadow:0 0 0 1px #0006 inset,0 0 26px color-mix(in srgb,var(--g) 65%,transparent)}}
@keyframes sbSpin{to{transform:rotate(360deg)}}
@keyframes sbShine{0%,55%{left:-60%}85%,100%{left:130%}}
@keyframes sbBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes sbCrown{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes sbGold{0%,100%{filter:drop-shadow(0 0 6px #ffe27a88)}50%{filter:drop-shadow(0 0 14px #ffe27a)}}
@media (prefers-reduced-motion:reduce){.sub-badge,.sub-badge *{animation:none!important}}

/* ===== Regalos ===== */
.gift-btn { border-style: dashed; }
.gift-row-btns { display: flex; gap: 8px; margin-top: 8px; }
.gift-row-btns .gift-btn { flex: 1; }
.gift-modal { width: min(520px, 94vw); max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.gf-head { display: flex; align-items: center; gap: 14px; }
.gf-head h3 { margin: 2px 0; }
.gf-price { color: #ffd34d; font-size: 18px; }
.gf-box { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #ff5a8c55, #2a0d1a); box-shadow: 0 0 22px #ff5a8c55; animation: gfBob 2.4s ease-in-out infinite; }
.gf-bow { font-size: 34px; filter: drop-shadow(0 0 8px #ff8ab0); }
.gf-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; padding: 4px 2px; }
.gf-sec { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; opacity: .7; margin: 2px 4px; }
.gf-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid #ffffff14; background: #ffffff08; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: .15s; }
.gf-row:hover { border-color: #ff8ab0; background: #ff5a8c14; }
.gf-row.sel { border-color: #ffd34d; background: #ffd34d1a; box-shadow: 0 0 0 1px #ffd34d55 inset; }
.gf-row.off { opacity: .45; cursor: not-allowed; }
.gf-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-tag, .gf-block { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #38cdf522; color: #8af0f5; }
.gf-block { background: #ffffff14; color: #ccc; }
.gf-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.gf-av.sm { width: 24px; height: 24px; }
.gf-init { display: grid; place-items: center; background: #1d2a36; font-weight: 800; }
.gf-chosen { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.gf-msg { resize: vertical; }
.gifts-wrap { display: flex; flex-direction: column; gap: 10px; }
.gifts-how { display: flex; gap: 14px; align-items: center; }
.gh-ico { font-size: 34px; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gift-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 1px solid #ff8ab055; box-shadow: 0 0 24px #ff5a8c22; overflow: hidden; }
.gc-box { position: relative; width: 90px; height: 80px; margin: 6px 0 4px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg, #ff5a8c, #a01848); box-shadow: 0 10px 24px #ff5a8c55; animation: gfShake 3s ease-in-out infinite; }
.gc-box::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px; background: #ffd34d; }
.gc-lid { position: absolute; left: -6px; right: -6px; top: -10px; height: 22px; border-radius: 8px; background: linear-gradient(160deg, #ff7aa4, #c22057); box-shadow: 0 4px 0 #0003; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.gc-lid::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px; background: #ffd34d; }
.gc-ico { position: relative; z-index: 1; font-size: 30px; opacity: 0; transform: scale(.4); transition: .4s .2s; }
.gift-card.opened .gc-lid { transform: translateY(-40px) rotate(-18deg); }
.gift-card.opened .gc-ico { opacity: 1; transform: scale(1.2); }
.gift-card.opened .gc-box { animation: none; }
.gc-from { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.gc-name { margin: 0; }
.gc-msg { margin: 0; font-style: italic; opacity: .85; }
.gift-hist { display: flex; flex-direction: column; gap: 6px; }
.gift-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff10; }
.gr-txt { flex: 1; display: flex; flex-direction: column; }
.gr-st { font-size: 12px; white-space: nowrap; }
.gift-pop-card { text-align: center; width: min(420px, 92vw); }
.gp-box { font-size: 64px; animation: gfShake 1.6s ease-in-out infinite; filter: drop-shadow(0 0 18px #ff8ab0); }
@keyframes gfBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes gfShake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-6deg); } 88% { transform: rotate(6deg); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .gc-box, .gp-box, .gf-box { animation: none !important; } }

/* ===== Inventario -> Objetos ===== */
.items-wrap { display: flex; flex-direction: column; gap: 12px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.item-card { --c1: #38cdf5; --g: #5cc2ff; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--c1) 55%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--g) 22%, transparent); position: relative; overflow: hidden; }
.item-card.sub.tier-1 { --c1: #e08a3c; --g: #ff9a4a; } .item-card.sub.tier-2 { --c1: #35d07f; --g: #4dffa0; } .item-card.sub.tier-3 { --c1: #3fa9ff; --g: #5cc2ff; }
.item-card.sub.tier-4 { --c1: #b46bff; --g: #c98cff; } .item-card.sub.tier-5 { --c1: #ffd34d; --g: #ffe27a; }
.item-card.pack { --c1: #ff8ab0; --g: #ff5a8c; }
.ic-art { position: relative; width: 84px; height: 84px; margin-top: 6px; display: grid; place-items: center; border-radius: 20px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--g) 40%, transparent), #0b1118 75%); box-shadow: 0 0 24px color-mix(in srgb, var(--g) 45%, transparent); animation: gfBob 2.6s ease-in-out infinite; }
.ic-ico { font-size: 40px; filter: drop-shadow(0 0 10px var(--g)); }
.ic-crowns { position: absolute; top: -8px; display: flex; gap: 2px; }
.ic-crowns i { width: 11px; height: 8px; background: #ffffff22; clip-path: polygon(0 100%, 8% 20%, 30% 60%, 50% 0, 70% 60%, 92% 20%, 100% 100%); }
.ic-crowns i.on { background: var(--c1); filter: drop-shadow(0 0 4px var(--g)); }
.ic-kind { letter-spacing: 1.5px; text-transform: uppercase; font-size: 11px; color: var(--c1); }
.ic-name { margin: 0; }
.ic-note { margin: 0; }
.item-btns { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 4px; }
.gr-ico { font-size: 22px; }
