/* 
    ================================================
    ESTILO NEON CORAL v15.0
    ================================================
*/

:root {
    --bg: #000000;
    --accent: #ff7e67; /* Coral Neon */
    --accent-glow: rgba(255, 126, 103, 0.6);
    --card: #0a0a0a;
    --border: #1a1a1a;
    --text: #ffffff;
    --text-dim: #666666;
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    background: var(--bg); 
    color: var(--text); 
    overflow-x: hidden;
    min-height: 100vh;
}

/* NAVEGAÇÃO */
nav {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9); border: 1px solid var(--border);
    padding: 5px; display: flex; gap: 5px; z-index: 9999; border-radius: 15px;
    backdrop-filter: blur(10px); width: 90%; max-width: 400px;
}
.nav-btn {
    flex: 1; background: none; border: none; color: var(--text-dim); padding: 12px 5px;
    font-weight: 900; text-transform: uppercase; font-size: 0.6rem; cursor: pointer;
    border-radius: 10px; transition: 0.3s;
}
.nav-btn.active { background: var(--accent); color: #000; box-shadow: 0 0 15px var(--accent-glow); }

/* TELAS */
.screen { width: 100%; max-width: 500px; margin: 0 auto; padding: 30px 20px 120px; display: none; }
.screen.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* LOGO E AUTH */
.neon-logo { font-size: 2.5rem; font-weight: 900; text-align: center; margin-bottom: 30px; letter-spacing: -1px; }
.neon-logo span { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.neon-panel { background: var(--card); padding: 25px; border-radius: 20px; border: 1px solid var(--border); }
input { 
    width: 100%; padding: 15px; margin-bottom: 10px; border-radius: 12px; 
    border: 1px solid var(--border); background: #050505; color: #fff; font-size: 1rem;
}
.btn-neon { 
    width: 100%; padding: 15px; border-radius: 12px; border: none; 
    background: var(--accent); color: #000; font-weight: 900; 
    text-transform: uppercase; cursor: pointer; transition: 0.2s;
}
.btn-neon.danger { background: #ff4444; color: #fff; }

/* RANKING (ESTILO REFERÊNCIA) */
.ranking-container { display: flex; flex-direction: column; gap: 8px; }
.rank-card {
    background: var(--card); border: 1px solid var(--border);
    padding: 15px 20px; border-radius: 5px; display: flex; align-items: center; gap: 15px;
    position: relative; overflow: hidden;
}
.rank-card::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--accent);
}
.rank-card.top-3 { background: var(--accent); border: none; }
.rank-card.top-3 * { color: #000 !important; }
.rank-card.top-3::before { display: none; }

.rank-avatar-container {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}
.rank-pfp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    position: relative;
    z-index: 2;
}
.aura-fx-mini {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.tag-badge-mini {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.45rem;
    font-weight: 900;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.rank-num { font-weight: 900; width: 25px; font-size: 1.1rem; }
.rank-name { flex: 1; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.rank-pts { font-family: 'JetBrains Mono'; font-weight: 900; font-size: 1.1rem; }

/* JOGO */
.game-hud { text-align: center; margin-bottom: 30px; }
.points-display { font-size: 4rem; font-weight: 900; letter-spacing: -3px; text-shadow: 0 0 30px var(--accent-glow); }
.aps-display { color: var(--text-dim); font-family: 'JetBrains Mono'; font-size: 0.9rem; }
.streak-badge, .lucky-badge { 
    display: inline-block; background: var(--accent); color: #000; 
    padding: 4px 12px; border-radius: 20px; font-size: 0.6rem; font-weight: 900; margin-bottom: 10px;
}
.lucky-badge { background: #fff; margin-right: 5px; animation: pulse 1s infinite alternate; }

.clicker-main { display: flex; justify-content: center; margin: 40px 0; }
.avatar-neon-frame {
    width: 220px; height: 220px; border-radius: 50%; border: 4px solid var(--accent);
    padding: 10px; position: relative; cursor: pointer; transition: 0.1s;
    box-shadow: 0 0 30px var(--accent-glow);
}
.avatar-neon-frame:active { transform: scale(0.95); }
.pfp-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* UPGRADES */
.mini-title { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin: 20px 0 10px; text-align: center; }
.upgrade-column { display: flex; flex-direction: column; gap: 8px; }
.up-card { 
    background: var(--card); border: 1px solid var(--border); padding: 15px; 
    border-radius: 10px; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
}
.up-card:active { background: #111; }
.up-info b { display: block; font-size: 0.9rem; }
.up-info span { font-size: 0.7rem; color: var(--text-dim); }
.up-price { background: var(--accent); color: #000; padding: 5px 10px; border-radius: 5px; font-weight: 900; font-size: 0.8rem; }

/* LOJA */
.neon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-item {
    background: var(--card); border: 1px solid var(--border); border-radius: 15px;
    padding: 15px; text-align: center; display: flex; flex-direction: column; justify-content: space-between;
    min-height: 180px;
}
.timer-neon { text-align: center; font-size: 0.7rem; color: var(--accent); font-weight: 900; margin-bottom: 15px; }

/* MURAL */
.mural-section { margin-top: 30px; background: var(--card); border-radius: 15px; padding: 15px; border: 1px solid var(--border); }
.mural-feed { max-height: 150px; overflow-y: auto; font-size: 0.75rem; color: var(--text-dim); }
.mural-item { margin-bottom: 5px; border-bottom: 1px solid #111; padding-bottom: 5px; }
.mural-item b { color: var(--accent); }

/* AURAS */
.aura-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; pointer-events: none; }
.tag-badge {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    background: #fff; color: #000; padding: 2px 10px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 900; white-space: nowrap;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: 0.3s;
    z-index: 10;
}

/* Efeitos Especiais para Tags de Alto Nível */
/* Nota: :contains() não é um seletor CSS padrão. 
   As classes especiais devem ser aplicadas via JS se necessário, 
   ou usar seletores de atributo se o texto estiver no atributo.
   Como o texto é dinâmico via innerText, vamos remover os seletores inválidos 
   e manter um estilo base sólido. */
.tag-badge.special-creator {
    background: var(--accent);
    color: #000;
    animation: pulse 1s infinite alternate;
}

.tag-badge.special-god {
    background: linear-gradient(45deg, #ffd700, #fff);
    color: #000;
    box-shadow: 0 0 20px #ffd700;
}

@keyframes pulse { from { opacity: 0.6; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }
@keyframes popupAnim { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }

/* INFO & GALLERY STYLES */
.info-systems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.info-card-neon {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.info-card-neon h3 {
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.info-card-neon p {
    font-size: 0.65rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.member-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.member-info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.member-info-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.member-info-pfp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.member-details {
    flex: 1;
}

.member-details h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.member-details p {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.3;
    font-style: italic;
}

/* NOVAS AURAS */
.aura-blue { box-shadow: 0 0 20px #00d4ff, inset 0 0 10px #00d4ff; border: 2px solid #00d4ff; animation: pulse 1.5s infinite; }
.aura-fire { box-shadow: 0 0 30px #ff4500, inset 0 0 15px #ff4500; border: 2px solid #ff4500; filter: blur(1px); animation: pulse 0.8s infinite alternate; }
.aura-galaxy { background: radial-gradient(circle, rgba(138,43,226,0.4) 0%, rgba(0,0,0,0) 70%); box-shadow: 0 0 40px #8a2be2; animation: rotateAura 10s linear infinite; }
.aura-matrix { box-shadow: 0 0 20px #00ff00; border: 1px dashed #00ff00; animation: matrixScan 2s linear infinite; }
.aura-gold { box-shadow: 0 0 35px #ffd700, inset 0 0 20px #ffd700; border: 3px double #ffd700; animation: pulse 2s infinite; }
.aura-emerald { box-shadow: 0 0 20px #50c878; border: 2px solid #50c878; }
.aura-shadow { box-shadow: 0 0 25px #333; background: rgba(0,0,0,0.5); filter: blur(5px); }
.aura-lightning { box-shadow: 0 0 15px #9370db; border: 1px solid #9370db; animation: flicker 0.1s infinite; }
.aura-solar { box-shadow: 0 0 50px #ff8c00; background: radial-gradient(circle, rgba(255,140,0,0.3) 0%, transparent 70%); }
.aura-ice { box-shadow: 0 0 20px #afeeee; border: 2px solid #afeeee; opacity: 0.8; }
.aura-blood { box-shadow: 0 0 30px #8b0000; border-left: 5px solid #8b0000; animation: rotateAura 3s linear infinite; }
.aura-wind { border: 2px dotted #fff; opacity: 0.5; animation: rotateAura 0.5s linear infinite; }
.aura-toxic { box-shadow: 0 0 25px #adff2f; filter: hue-rotate(90deg); animation: pulse 1s infinite; }
.aura-crystal { box-shadow: 0 0 20px #e0ffff; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); border: 1px solid #fff; }
.aura-void { box-shadow: 0 0 40px #000; background: #000; border: 2px solid #1a1a1a; }
.aura-supernova { 
    box-shadow: 0 0 60px #fff, 0 0 100px #ff0, inset 0 0 40px #ff4500; 
    background: radial-gradient(circle, #fff, #ff0, transparent);
    animation: supernovaExplosion 2s infinite alternate; 
}
.aura-nebula { 
    background: linear-gradient(45deg, #ff00ff, #00ffff, #8a2be2); 
    opacity: 0.6; filter: blur(15px); 
    animation: nebulaShift 5s infinite linear;
}
.aura-stars { 
    background-image: radial-gradient(#fff 2px, transparent 2px); 
    background-size: 15px 15px; 
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
    animation: starsTwinkle 1.5s infinite; 
}
.aura-wisp { 
    box-shadow: 0 0 30px #00ffff; 
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
    background: rgba(0, 255, 255, 0.2);
    animation: morph 3s infinite alternate, rotateAura 10s infinite linear; 
}
.aura-diamond { 
    box-shadow: 0 0 40px #b9f2ff, inset 0 0 20px #fff; 
    border: 2px solid #fff; 
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
    filter: brightness(1.2) contrast(1.2); 
}
.aura-quantum { 
    box-shadow: 0 0 25px #00ffcc, 0 0 50px #00ffcc; 
    opacity: 0.8; 
    border: 1px dashed #00ffcc;
    animation: flicker 0.1s infinite, rotateAura 2s infinite linear; 
}
.aura-event { 
    box-shadow: 0 0 60px #ff0000, inset 0 0 40px #000; 
    border: 8px solid #000; 
    background: radial-gradient(circle, transparent 40%, #ff0000 100%);
}
.aura-holy { 
    box-shadow: 0 0 50px #ffffea, 0 0 100px rgba(255,255,234,0.5); 
    background: radial-gradient(circle, rgba(255,255,234,0.6) 0%, transparent 80%); 
    animation: holyGlow 3s infinite;
}
.aura-nightmare { 
    box-shadow: 0 0 40px #4b0082, inset 0 0 20px #000; 
    background: rgba(0,0,0,0.8);
    filter: grayscale(1) contrast(3); 
    animation: nightmarePulse 0.3s infinite; 
}
.aura-platinum { 
    box-shadow: 0 0 30px #e5e4e2, inset 0 0 15px #fff; 
    border: 3px solid #e5e4e2; 
    background: linear-gradient(45deg, #e5e4e2, #fff, #e5e4e2);
}
.aura-sand { 
    box-shadow: 0 0 30px #c2b280; 
    background: repeating-linear-gradient(45deg, #c2b280, #d2b48c 10px);
    filter: blur(1px); 
    animation: sandDrift 1s infinite linear; 
}
.aura-life { 
    box-shadow: 0 0 40px #32cd32, 0 0 20px #fff; 
    border: 2px solid #32cd32; 
    background: radial-gradient(circle, rgba(50,205,50,0.3), transparent);
    animation: lifePulse 4s infinite; 
}
.aura-anti { 
    box-shadow: 0 0 50px #fff; 
    background: #fff;
    filter: invert(1); 
    mix-blend-mode: difference;
}
.aura-infinity { 
    box-shadow: 0 0 60px #ff00ff, 0 0 30px #00ffff; 
    border: 4px double #ff00ff; 
    animation: rotateAura 0.5s infinite linear, rainbow 3s infinite linear; 
}
.aura-singularity { 
    width: 15px; height: 15px; left: 50%; top: 50%; transform: translate(-50%, -50%); 
    box-shadow: 0 0 120px 60px #000, 0 0 40px 10px #8a2be2; 
    background: #000; 
    animation: pulse 0.5s infinite alternate;
}
.aura-darkmatter { 
    box-shadow: 0 0 50px #1a0033, inset 0 0 30px #4b0082; 
    background: rgba(26,0,51,0.9); 
    filter: blur(10px); 
    animation: darkMatterFlow 4s infinite alternate;
}
.aura-divine { 
    box-shadow: 0 0 80px #fff, 0 0 40px #ffd700, inset 0 0 30px #ffd700; 
    border: 2px solid #ffd700; 
    background: radial-gradient(circle, #fff, transparent);
    animation: divineRadiance 2s infinite;
}
.aura-multiverse { 
    box-shadow: 0 0 40px #ff0000, 0 0 40px #00ff00, 0 0 40px #0000ff; 
    background: conic-gradient(#ff0000, #00ff00, #0000ff, #ff0000);
    animation: rainbow 2s infinite linear, rotateAura 3s infinite linear; 
}
.aura-time { 
    box-shadow: 0 0 30px #87ceeb, inset 0 0 20px #fff; 
    border: 3px dashed #87ceeb; 
    animation: rotateAura 5s infinite linear; 
}
.aura-supreme { 
    box-shadow: 0 0 120px #ff7e67, 0 0 60px #fff; 
    border: 8px double #ff7e67; 
    background: radial-gradient(circle, var(--accent), transparent);
    animation: supremePower 0.1s infinite; 
}

/* NOVAS ANIMAÇÕES ÉPICAS */
@keyframes supernovaExplosion { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }
@keyframes nebulaShift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
@keyframes starsTwinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes holyGlow { 0%, 100% { box-shadow: 0 0 50px #ffffea; } 50% { box-shadow: 0 0 100px #ffffea, 0 0 150px rgba(255,255,234,0.5); } }
@keyframes nightmarePulse { 0% { transform: scale(1) skew(0deg); } 50% { transform: scale(1.1) skew(2deg); filter: contrast(5); } 100% { transform: scale(1) skew(-2deg); } }
@keyframes lifePulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes darkMatterFlow { 0% { border-radius: 50%; } 100% { border-radius: 40% 60% 30% 70%; transform: rotate(10deg); } }
@keyframes divineRadiance { 0% { filter: brightness(1); } 50% { filter: brightness(1.8) drop-shadow(0 0 20px #fff); } 100% { filter: brightness(1); } }
@keyframes supremePower { 0% { transform: translate(0,0) scale(1); } 25% { transform: translate(2px, -2px) scale(1.02); } 50% { transform: translate(-2px, 2px) scale(0.98); } 75% { transform: translate(2px, 2px) scale(1.02); } 100% { transform: translate(0,0) scale(1); } }

@keyframes rotateAura { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes matrixScan { 0% { clip-path: inset(0 0 100% 0); } 50% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(100% 0 0 0); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes morph { 0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 100% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; } }
@keyframes sandDrift { from { background-position: 0 0; } to { background-position: 50px 50px; } }
@keyframes rainbow { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

.memory-card.flipped {
    background: var(--card) !important;
    border-color: var(--accent) !important;
    transform: rotateY(180deg);
    transition: transform 0.6s;
}

.aura-green-fire { 
    box-shadow: 0 0 30px #00ff41, inset 0 0 15px #00ff41; 
    border: 2px solid #00ff41; 
    filter: hue-rotate(90deg) brightness(1.5); 
    animation: fireBurn 0.5s infinite alternate; 
}

@keyframes fireBurn {
    0% { transform: scale(1) skewX(0deg); opacity: 0.8; }
    50% { transform: scale(1.05) skewX(2deg); opacity: 1; }
    100% { transform: scale(1) skewX(-2deg); opacity: 0.9; }
}
