/* Página /announcements: eventos y novedades en tarjetas grandes, con Shiru a un lado si el anuncio trae arte. */
.an-wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 40px 20px 70px; }
.an-hero { max-width: 760px; }
.an-list { display: flex; flex-direction: column; gap: 26px; }
.an-empty { text-align: center; color: var(--text-muted); margin: 40px 0; }

.an-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 26px; border: 1px solid rgba(122, 214, 255, 0.22); scroll-margin-top: 16px;
    background:
        radial-gradient(ellipse 560px 300px at 0% 0%, rgba(122, 214, 255, 0.14), transparent 70%),
        radial-gradient(ellipse 520px 340px at 100% 100%, rgba(168, 136, 255, 0.16), transparent 70%),
        rgba(13, 19, 32, 0.86);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.an-card.has-art { grid-template-columns: minmax(0, 1fr) 320px; }
.an-body { padding: 34px 36px; min-width: 0; }
.an-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--text-muted); }
.an-tag { padding: 4px 12px; border-radius: 999px; font-weight: 700; color: var(--accent-text); background: var(--accent); }
.an-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-weight: 700; color: #74fc66; border: 1px solid rgba(116, 252, 102, 0.4); background: rgba(116, 252, 102, 0.08); }
.an-ended { padding: 4px 12px; border-radius: 999px; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); }
.an-live i { width: 8px; height: 8px; border-radius: 50%; background: #74fc66; animation: an-pulse 1.8s ease-in-out infinite; }
@keyframes an-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.an-title { margin: 14px 0 10px; font-family: 'Baloo 2', sans-serif; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.1; text-wrap: balance; }
.an-summary { margin: 0; font-size: 1.05rem; line-height: 1.65; color: #c9d4e3; }
.an-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.an-icons img { width: 48px; height: 48px; padding: 5px; border-radius: 14px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--border); transition: transform 0.18s ease; }
.an-icons img:hover { transform: translateY(-4px) rotate(-4deg); }
.an-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 22px; }
.an-block { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(5, 9, 18, 0.55); border: 1px solid var(--border); }
.an-block-icon { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 1.25rem; background: var(--accent-soft); }
.an-block h3 { margin: 0 0 5px; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.an-block p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: #b6c3d6; }
.an-note { margin: 20px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); font-size: 0.92rem; line-height: 1.55; color: var(--text); }
.an-card code { padding: 1px 6px; border-radius: 6px; font-size: 0.9em; background: rgba(5, 9, 18, 0.7); border: 1px solid var(--border); color: var(--moon); white-space: nowrap; }
.an-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Shiru a un lado: arriba, y acompaña al bajar por un anuncio largo */
.an-art { position: relative; display: flex; align-items: flex-start; justify-content: center; min-height: 320px; padding: 30px 16px 24px 0; }
.an-art::before { content: ''; position: absolute; left: 50%; top: 230px; width: 280px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(122, 214, 255, 0.3), transparent 68%); filter: blur(14px); }
.an-art img { position: sticky; top: 24px; display: block; width: 100%; max-width: 330px; height: auto; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55)); }

@media (prefers-reduced-motion: reduce) { .an-live i { animation: none; } .an-icons img { transition: none; } .an-icons img:hover { transform: none; } }
@media (max-width: 900px) {
    .an-card.has-art { grid-template-columns: minmax(0, 1fr); }
    .an-art { order: -1; min-height: 0; padding: 22px 12px 0; max-height: 300px; overflow: hidden; align-items: flex-start; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
    .an-art img { position: static; max-width: 230px; }
}
@media (max-width: 560px) { .an-body { padding: 24px 18px; } .an-icons img { width: 42px; height: 42px; } }
