/* apepage1 (review2, 28-10-2026): a member's public page, /ape/<username> (templates/ape.html). --ap-c is their rank's
   colour (the club's cyan before their first XP); --ap-a1/--ap-a2 their Ape Site's look when they have one. */
.ap-hero { --ap-a1: var(--ap-c); --ap-a2: #d946ef; position: relative; margin: 28px 20px 0; border-radius: 24px; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ap-c) 38%, var(--line-strong)); background: #0b0520;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.ap-hero-bg { position: absolute; inset: 0;
    background:
        radial-gradient(700px 360px at 12% 0%, color-mix(in srgb, var(--ap-c) 34%, transparent), transparent 70%),
        radial-gradient(640px 380px at 100% 100%, color-mix(in srgb, var(--ap-a2) 30%, transparent), transparent 70%),
        linear-gradient(135deg, #160733, #0a0418); }
.ap-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0.55; filter: saturate(1.15); }
.ap-hero-bg::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,3,20,0.92) 0%, rgba(8,3,20,0.7) 46%, rgba(8,3,20,0.35) 100%), linear-gradient(0deg, rgba(8,3,20,0.85), transparent 55%); }
.ap-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
    background: linear-gradient(90deg, var(--ap-c), var(--ap-a2), var(--orange)); }
.ap-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
    max-width: 1200px; margin: 0 auto; padding: 64px 20px 52px; }

.ap-face { position: relative; width: 172px; height: 172px; border-radius: 50%; padding: 6px;
    background: conic-gradient(var(--ap-c) calc(var(--xp-p, 0) * 1%), rgba(255,255,255,0.12) 0);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 40px color-mix(in srgb, var(--ap-c) 40%, transparent); }
.ap-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid #0b0520; background: #1a0b38; }
.ap-face img.xp-frame { padding: 3px; border: 0; }
.ap-lv { position: absolute; right: 2px; bottom: 6px; display: grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 99px;
    font-size: 1.35rem; font-weight: 900; line-height: 1; color: #0b0520; background: var(--ap-c); border: 4px solid #0b0520;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.ap-lv small { display: block; margin-bottom: -2px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

.ap-who { min-width: 0; }
.ap-who h1 { margin: 14px 0 2px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em;
    overflow-wrap: anywhere; text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.ap-handle { margin: 0 0 16px; font-size: 1.1rem; font-weight: 700; color: color-mix(in srgb, var(--ap-c) 75%, #fff); }
.ap-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-pill { --xc: var(--cyan); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 0.82rem; font-weight: 800;
    color: #fff; background: color-mix(in srgb, var(--xc) 18%, rgba(8,3,20,0.6)); border: 1px solid color-mix(in srgb, var(--xc) 55%, transparent); }
.ap-pill--team { color: #0b0520; background: linear-gradient(135deg, #facc15, #f97316); border-color: transparent; }
.ap-pill--site { --xc: var(--ap-a1); transition: background 0.15s; }
.ap-pill--site:hover { background: color-mix(in srgb, var(--xc) 32%, rgba(8,3,20,0.6)); }
.ap-pills .xp-pill { font-size: 0.82rem; }
.ap-pill--honor { text-decoration: none; box-shadow: 0 0 18px -6px color-mix(in srgb, var(--xc) 85%, transparent); transition: background 0.15s; }   /* cards1 */
.ap-pill--honor:hover { background: color-mix(in srgb, var(--xc) 32%, rgba(8,3,20,0.6)); }
.ap-actions { display: grid; gap: 10px; justify-items: stretch; }
.ap-actions .btn { padding: 12px 18px; font-size: 0.92rem; }

section.block.ap-page { padding-top: 28px; }
.ap-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.ap-tile { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 18px 20px; border-radius: 18px; color: #fff;
    background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s, background 0.2s; }
a.ap-tile:hover { border-color: var(--line-strong); background: var(--panel-strong); transform: translateY(-2px); }
.ap-tile small { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ap-tile b { font-size: 2rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ap-tile em { font-style: normal; font-size: 0.86rem; color: #cbd5e1; }
.ap-tile--wide { grid-column: span 3; }
.ap-tile--xp b { color: var(--xp-c); }
.ap-bar { display: block; height: 7px; margin: 6px 0 4px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.ap-bar i { display: block; width: calc(var(--xp-p, 0) * 1%); min-width: 6px; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, var(--xp-c), #fff); box-shadow: 0 0 10px var(--xp-c); }

.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ap-col { display: grid; gap: 22px; min-width: 0; }
.ap-grid--one { grid-template-columns: minmax(0, 1fr); }
.ap-card { min-width: 0; padding: 22px 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.ap-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ap-card h2 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.ap-card > header a { font-size: 0.86rem; font-weight: 700; color: var(--cyan); white-space: nowrap; }
.ap-card > header a:hover { text-decoration: underline; }
.ap-note { margin: 6px 0 0; color: #cbd5e1; font-size: 0.92rem; text-align: center; text-wrap: balance; }
.ap-adn .xp-adn-plot { width: min(100%, 320px); }
.ap-empty { margin: 4px 0; color: var(--muted); }
.ap-more { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }

.ap-site { padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--ap-a1) 35%, var(--line)); }
.ap-site-cover { display: block; height: 130px; background: linear-gradient(135deg, var(--ap-a1), var(--ap-a2)); }
.ap-site-cover img { width: 100%; height: 100%; object-fit: cover; }
.ap-site-body { padding: 0 22px 20px; }
.ap-site-top { display: flex; align-items: end; gap: 14px; margin-top: -26px; }
.ap-site-avatar { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 3px solid #120a26; background: #1a0b38; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.ap-site-top div { min-width: 0; padding-bottom: 2px; }
.ap-site-top small { display: block; margin-top: 30px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--ap-a1) 70%, #fff); }
.ap-site-top h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-host { font-size: 0.86rem; color: var(--muted); }
.ap-site-body > p { margin: 12px 0 0; color: #cbd5e1; }
.ap-apes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.ap-ape { --tc: #9ca3af; position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: #160a2e; border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); }
.ap-ape img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ap-ape:hover img { transform: scale(1.06); }
.ap-ape i { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 6px; font-size: 0.62rem; font-style: normal; font-weight: 800;
    text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: color-mix(in srgb, var(--tc) 55%, #fff); background: rgba(8,3,20,0.78); }
.ap-ape--mythic { --tc: #ff2a3d; } .ap-ape--legendary { --tc: #fbbf24; } .ap-ape--epic { --tc: #c084fc; }
.ap-ape--rare { --tc: #60a5fa; } .ap-ape--uncommon { --tc: #22c55e; }
.ap-site-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 0.9rem; }
.ap-go { padding: 8px 14px; border-radius: 99px; font-size: 0.84rem; font-weight: 900; color: #0b0616; background: linear-gradient(135deg, var(--ap-a1), var(--ap-a2)); }
.ap-go:hover { filter: brightness(1.1); }

.ap-wins, .ap-comments { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ap-wins a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
    background: rgba(250, 204, 21, 0.06); border: 1px solid rgba(250, 204, 21, 0.18); color: #fff; transition: background 0.15s; }
.ap-wins a:hover { background: rgba(250, 204, 21, 0.12); }
.ap-trophy { font-size: 1.3rem; }
.ap-win-main { display: grid; min-width: 0; }
.ap-win-main b, .ap-win-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-win-main small { color: var(--muted); font-size: 0.82rem; }
.ap-when { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.ap-comments a { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; color: #fff; background: rgba(255,255,255,0.03);
    border: 1px solid var(--line); border-left: 3px solid var(--sc); transition: background 0.15s; }
.ap-comments a:hover { background: rgba(255,255,255,0.06); }
.ap-c-where { font-size: 0.76rem; font-weight: 700; color: color-mix(in srgb, var(--sc) 70%, #fff); }
.ap-c-text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.45; }
.ap-c-post { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; color: var(--muted); }

.ap-toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 12px; font-weight: 700;
    background: rgba(12,6,28,0.95); border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.ap-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
    .ap-hero-in { grid-template-columns: auto 1fr; padding: 48px 32px 40px; }
    .ap-actions { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; }
    .ap-grid { grid-template-columns: 1fr; }
    .ap-tile--wide { grid-column: auto; }
}
@media (max-width: 640px) {
    .ap-hero { margin: 16px 12px 0; border-radius: 20px; }
    .ap-hero-in { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 36px 18px 28px; text-align: center; }
    .ap-face { width: 136px; height: 136px; }
    .ap-lv { min-width: 46px; height: 46px; font-size: 1.1rem; }
    .ap-pills { justify-content: center; }
    .ap-actions { grid-auto-flow: row; width: 100%; justify-content: stretch; }
    .ap-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ap-tile { padding: 14px 14px; }
    .ap-tile b { font-size: 1.5rem; }
    .ap-tile em { font-size: 0.78rem; }
    .ap-tile--wide { grid-column: 1 / -1; }
    .ap-card { padding: 18px 16px; border-radius: 18px; }
    .ap-site { padding: 0; }
    .ap-site-body { padding: 0 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-tile, .ap-ape img, .ap-toast { transition: none; }
    a.ap-tile:hover { transform: none; }
}

/* radiocard1 (31-10-2026): their BASC Radio on /ape/<username>. A small record with their picture as the label (it spins
   while they are in the Discord voice channel), time listened, places, RadioPoints and the 3 songs they ask for most. */
.ap-radio { position: relative; overflow: hidden; border-color: color-mix(in srgb, #00ddeb 26%, var(--line));
    background: radial-gradient(420px 220px at 0% 0%, rgba(0,221,235,0.10), transparent 70%),
                radial-gradient(380px 220px at 100% 100%, rgba(153,69,255,0.12), transparent 70%), var(--panel); }
.ap-rd-main { display: flex; align-items: center; gap: 18px; }
.ap-rd-disc { position: relative; flex: none; width: 84px; height: 84px; }
.ap-rd-vinyl { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
    background: radial-gradient(circle, #1a1030 0 30%, transparent 30.5%), repeating-radial-gradient(circle, #0b0614 0 1.5px, #191028 2px 3px), #0b0614;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06), 0 10px 26px rgba(0,0,0,0.5); animation: ap-rd-spin 6s linear infinite paused; }
.ap-rd-vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 30deg, transparent 0 12%, rgba(255,255,255,0.10) 16%, transparent 22% 62%, rgba(255,255,255,0.07) 66%, transparent 72%); }
.ap-rd-vinyl img { width: 40%; height: 40%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(0,221,235,0.5), 0 0 12px rgba(0,221,235,0.35); }
.ap-radio.is-live .ap-rd-vinyl { animation-play-state: running; }
.ap-radio.is-live .ap-rd-disc::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; filter: blur(6px);
    background: radial-gradient(circle, rgba(0,221,235,0.35), rgba(153,69,255,0.18) 45%, transparent 68%); animation: ap-rd-breathe 3.2s ease-in-out infinite; }
@keyframes ap-rd-spin { to { transform: rotate(360deg); } }
@keyframes ap-rd-breathe { 50% { opacity: 0.55; transform: scale(0.94); } }
.ap-rd-total { display: grid; gap: 2px; min-width: 0; }
.ap-rd-total > b { font-size: 2.1rem; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums;
    background: linear-gradient(90deg, #fff, #9be9f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-rd-total small { font-size: 0.88rem; color: #cbd5e1; }
.ap-rd-rank { font-weight: 900; color: #fff; }
.ap-rd-rank.is-top { color: #fbbf24; }
.ap-rd-live { justify-self: start; display: inline-flex; align-items: center; gap: 3px; margin-bottom: 4px; padding: 3px 10px 3px 8px; border-radius: 99px;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; color: #a7f3d0; background: rgba(20,241,149,0.12); border: 1px solid rgba(20,241,149,0.4); }
.ap-rd-live i { display: block; width: 3px; height: 10px; border-radius: 2px; background: #14f195; transform-origin: bottom; animation: ap-rd-eq 0.9s ease-in-out infinite; }
.ap-rd-live i:nth-child(2) { animation-delay: -0.3s; } .ap-rd-live i:nth-child(3) { margin-right: 5px; animation-delay: -0.6s; }
@keyframes ap-rd-eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.ap-rd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ap-rd-stats > div { display: grid; gap: 2px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.035); border: 1px solid var(--line); }
.ap-rd-stats small, .ap-rd-hits > small { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ap-rd-stats b { font-size: 1.3rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.ap-rd-stats em { font-style: normal; font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-rd-hits { margin-top: 16px; }
.ap-rd-hits ol { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ap-rd-hits li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.ap-rd-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 0.85rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
    color: #1a1205; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 0 14px rgba(245,158,11,0.25); }
.ap-rd-hits li.is-2 .ap-rd-n { background: linear-gradient(135deg, #f1f5f9, #94a3b8); box-shadow: 0 0 14px rgba(148,163,184,0.2); }
.ap-rd-hits li.is-3 .ap-rd-n { background: linear-gradient(135deg, #fdba74, #b45309); box-shadow: 0 0 14px rgba(180,83,9,0.22); }
.ap-rd-song { display: grid; min-width: 0; }
.ap-rd-song b, .ap-rd-song em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-rd-song b { font-size: 0.92rem; }
.ap-rd-song em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.ap-rd-song code { font-size: 0.78rem; color: #9be9f0; background: none; padding: 0; }
.ap-rd-k { font-size: 0.85rem; font-weight: 800; color: #9be9f0; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
    .ap-rd-disc { width: 68px; height: 68px; }
    .ap-rd-total > b { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-radio.is-live .ap-rd-vinyl, .ap-radio.is-live .ap-rd-disc::before, .ap-rd-live i { animation: none; }
}

/* radiowins1 (31-10-2026): the radio raffles they won, in the giveaways' gold, above their top requests */
.ap-rd-wins { margin-top: 16px; }
.ap-rd-wins > small { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ap-rd-wins > small b { letter-spacing: 0; font-size: 0.85rem; color: #fde68a; }
.ap-rd-wins ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ap-rd-wins li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px;
    background: rgba(250, 204, 21, 0.06); border: 1px solid rgba(250, 204, 21, 0.2); }
.ap-rd-ticket { display: grid; place-items: center; width: 30px; height: 30px; font-size: 1.15rem; line-height: 1; font-style: normal; }
.ap-rd-wins .ap-more { margin-top: 8px; }

/* ---------- net1 (01-11-2026): the Ape network, a constellation like /partnership's (partners.css), with people.
   The stage is a square; everything inside goes by % of it. .an-layer turns (a lap in 5 minutes) with the lines and the
   faces, .an-body turns back so every face stays upright; hover or focus stops both together. */
.an-card { position: relative; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 22px;
    overflow: hidden; border-color: color-mix(in srgb, var(--an-c) 30%, var(--line));
    background: radial-gradient(600px 420px at 22% 50%, color-mix(in srgb, var(--an-c) 15%, transparent), transparent 70%), var(--panel); }
.an-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--an-c), #d946ef, var(--orange)); }
.an-stage { position: relative; width: 100%; aspect-ratio: 1; margin: -6px 0 -6px -6px; isolation: isolate; }
.an-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.an-ring { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.an-ring--out { stroke: rgba(255,255,255,0.08); stroke-dasharray: 1 7; }
.an-layer { position: absolute; inset: 0; z-index: 2; animation: an-spin 300s linear infinite; }
.an-link { stroke: rgba(255,255,255,0.26); stroke-width: 1; stroke-dasharray: 1 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.an-beam-base { stroke: var(--pc); stroke-linecap: round; opacity: 0.7; vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--pc) 70%, transparent)); }
.an-beam-base--out { opacity: 0.35; filter: none; }
.an-beam { stroke: #fff; stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 6 100; stroke-dashoffset: 106;
    opacity: 0; filter: drop-shadow(0 0 4px var(--pc)); animation: an-beam 4.2s cubic-bezier(.45,0,.2,1) infinite; animation-delay: var(--d, 0s); }
.an-node { position: absolute; left: var(--x); top: var(--y); width: calc(var(--k, 10) * 1%); transform: translate(-50%, -50%); z-index: 2; color: #fff; }
.an-node--out { z-index: 1; }
.an-body { position: relative; display: block; animation: an-spin 300s linear infinite reverse; }
.an-stage:hover .an-layer, .an-stage:hover .an-body, .an-stage:focus-within .an-layer, .an-stage:focus-within .an-body,
.an-stage.is-held .an-layer, .an-stage.is-held .an-body { animation-play-state: paused; }
.an-face { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #0b0520; border: 2.5px solid var(--pc);
    box-shadow: 0 0 18px color-mix(in srgb, var(--pc) 45%, transparent); transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s; }
.an-node--out .an-face { border-width: 1.5px; box-shadow: 0 0 10px color-mix(in srgb, var(--pc) 30%, transparent); }
.an-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.an-node--out .an-face img { opacity: 0.88; }
.an-node:hover .an-face, .an-node:focus-visible .an-face, .an-node.is-on .an-face { transform: scale(1.14);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 28%, transparent), 0 0 30px color-mix(in srgb, var(--pc) 70%, transparent); }
.an-node:hover .an-face img, .an-node:focus-visible .an-face img { opacity: 1; }
.an-node:focus-visible { outline: none; }
.an-tag { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); padding: 2px 8px; border-radius: 8px; white-space: nowrap;
    font-size: 0.75rem; font-weight: 800; line-height: 1.3; color: #fff; background: rgba(9,5,20,0.78); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); }
.an-node.is-below .an-tag { bottom: auto; top: calc(100% + 4px); }
.an-flag { position: absolute; right: -14%; top: -12%; padding: 1px 7px; border-radius: 99px; font-size: 0.75rem; font-weight: 900; font-style: normal; line-height: 1.35;
    white-space: nowrap; color: #0b0520; background: #facc15; box-shadow: 0 0 10px rgba(250,204,21,0.5); }
.an-node.is-you .an-face { border-color: #facc15; }
.an-node--out .an-flag { display: none; }   /* the small faces: the yellow ring says it, the word would crowd the inner names */
.an-core { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 3; border-radius: 50%;
    background: #0b0520; border: 3px solid var(--an-c); box-shadow: 0 0 0 7px color-mix(in srgb, var(--an-c) 12%, transparent), 0 0 44px color-mix(in srgb, var(--an-c) 50%, transparent);
    animation: an-breathe 5s ease-in-out infinite; }
.an-core img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.an-lv { position: absolute; right: -4%; bottom: -4%; display: grid; place-items: center; min-width: 30%; aspect-ratio: 1; padding: 0 3px; border-radius: 50%;
    font-size: 0.85rem; font-weight: 900; line-height: 1; color: #0b0520; background: var(--an-c); border: 3px solid #0b0520; font-variant-numeric: tabular-nums; }
.an-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: 50%;
    background: radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.9), transparent 70%), radial-gradient(1px 1px at 84% 14%, rgba(255,255,255,0.8), transparent 70%),
        radial-gradient(1.5px 1.5px at 92% 62%, rgba(186,230,253,0.9), transparent 70%), radial-gradient(1px 1px at 8% 76%, rgba(255,255,255,0.7), transparent 70%),
        radial-gradient(1px 1px at 30% 94%, rgba(253,186,116,0.8), transparent 70%), radial-gradient(1.5px 1.5px at 70% 90%, rgba(255,255,255,0.8), transparent 70%),
        radial-gradient(1px 1px at 52% 4%, rgba(255,255,255,0.7), transparent 70%), radial-gradient(1px 1px at 2% 44%, rgba(196,181,253,0.9), transparent 70%),
        radial-gradient(1px 1px at 22% 8%, rgba(255,255,255,0.8), transparent 70%), radial-gradient(1.5px 1.5px at 96% 34%, rgba(255,255,255,0.7), transparent 70%),
        radial-gradient(1px 1px at 62% 98%, rgba(186,230,253,0.8), transparent 70%), radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.5), transparent 70%);
    animation: an-twinkle 7s ease-in-out infinite alternate; }
.an-side header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.an-side h2 { margin: 0; font-size: 1.55rem; font-weight: 900; }
.an-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 800; white-space: nowrap;
    color: #cbd5e1; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); }
.an-sub { margin: 0 0 16px; color: #cbd5e1; font-size: 0.95rem; line-height: 1.45; }
.an-top { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.an-top a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.035); border: 1px solid var(--line);
    transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.an-top a:hover, .an-top a:focus-visible { border-color: color-mix(in srgb, var(--pc) 55%, transparent); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.an-top img { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pc); box-shadow: 0 0 14px color-mix(in srgb, var(--pc) 40%, transparent); }
.an-top span { min-width: 0; }
.an-top b { display: block; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-top small { display: block; color: #cbd5e1; font-size: 0.82rem; line-height: 1.45; }
.an-chips { display: none; }
.an-more { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; color: #cbd5e1; font-size: 0.88rem; }
.an-faces { display: flex; }
.an-faces img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pc); margin-left: -8px; background: #0b0520; }
.an-faces img:first-child { margin-left: 0; }
.an-common { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; font-size: 0.88rem; color: #fde68a;
    background: rgba(250,204,21,0.08); border: 1px solid rgba(250,204,21,0.28); }
.an-common img { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #facc15; }
.an-common b { color: #fff3c4; }
.an-own { margin: 0 0 16px; font-size: 0.82rem; color: #94a3b8; }
.an-own a { color: var(--cyan); font-weight: 700; }
.an-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.an-card--note { display: flex; align-items: center; gap: 16px; grid-template-columns: none; }
.an-card--note p { flex: 1; margin: 0; }
.an-card--note b { display: block; font-size: 1.02rem; }
.an-card--note small { display: block; color: #cbd5e1; font-size: 0.86rem; margin-top: 2px; }
.an-note-icon { font-size: 1.8rem; line-height: 1; }
/* aicon1 (01-11-2026): on a phone the owner's note puts its button under the text, full width, so the title breathes */
@media (max-width: 680px) { .an-card--note { flex-wrap: wrap; } .an-card--note p { flex: 1 1 0; min-width: 0; } .an-card--note .btn { flex: 1 1 100%; justify-content: center; } }
@keyframes an-spin { to { transform: rotate(360deg); } }
@keyframes an-beam { 0% { stroke-dashoffset: 106; opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes an-breathe { 0%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--an-c) 12%, transparent), 0 0 40px color-mix(in srgb, var(--an-c) 45%, transparent); }
    50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--an-c) 7%, transparent), 0 0 56px color-mix(in srgb, var(--an-c) 60%, transparent); } }
@keyframes an-twinkle { from { opacity: 0.4; } to { opacity: 0.95; } }
@media (max-width: 1000px) {
    .an-card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .an-stage { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .an-card { padding: 18px 14px; }
    .an-tag { display: none; }
    .an-flag { font-size: 0.75rem; padding: 0 5px; right: -22%; }
    .an-lv { font-size: 0.75rem; border-width: 2px; }
    .an-side h2 { font-size: 1.3rem; }
    .an-sub { font-size: 0.86rem; margin-bottom: 12px; }
    .an-top, .an-more { display: none; }
    .an-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 14px; padding: 2px 14px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
    .an-chips::-webkit-scrollbar { display: none; }
    .an-chips a { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; scroll-snap-align: start;
        background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 800; }
    .an-chips img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pc); }
    .an-chips small { display: block; font-weight: 500; color: #cbd5e1; font-size: 0.75rem; }
    .an-actions .btn { flex: 1; }
    .an-card--note { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .an-layer, .an-body, .an-beam, .an-core, .an-stars, .an-logo img { animation: none; }
    .an-beam { display: none; }
    .an-face, .an-top a { transition: none; }
}

/* ---------- net1b (01-11-2026, Mortimer: «estaría genial que ellos también tuvieran el circulito con su lvl»; «de fondo de
   la constelación … el logo de basc»; «el nombre … debe tener un color (el de su lvl) y en negrita»; «los tooltips … muy
   triste/pobre … BOOOOOM!»). The level on every face, the BASC logo behind everything, and the card of a face: it pops
   in with a turning edge in their colour, the beam from the centre to them fires, their own lines light up and the rest
   of the sky dims. «Reduce motion»: the same card and highlights, nothing moves. */
@property --an-turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.an-card .an-stage { z-index: 4; }   /* the card of a face goes over the side column */
.an-logo { position: absolute; left: 50%; top: 50%; z-index: -1; width: 88%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.an-logo img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0.24; filter: saturate(1.2) drop-shadow(0 0 22px rgba(217,70,239,0.35));
    animation: an-logo 9s ease-in-out infinite alternate; }
.an-plv { position: absolute; right: -7%; bottom: -7%; z-index: 2; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 99px;
    font-size: 0.75rem; font-weight: 900; line-height: 1; color: #0b0520; background: var(--pc); border: 2px solid #0b0520; font-variant-numeric: tabular-nums;
    box-shadow: 0 0 10px color-mix(in srgb, var(--pc) 55%, transparent); }
.an-node--out .an-plv { min-width: 19px; height: 19px; padding: 0 3px; border-width: 1.5px; right: -16%; bottom: -16%; }
.an-node .an-plv { transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.an-node:hover .an-plv, .an-node.is-on .an-plv { transform: translate(14%, 14%) scale(1.08); }
.an-who { color: var(--an-c); font-weight: 900; text-shadow: 0 0 18px color-mix(in srgb, var(--an-c) 55%, transparent); }
.an-top-face { position: relative; flex: none; display: block; }
.an-top .an-plv { right: -6px; bottom: -4px; min-width: 20px; height: 20px; border-width: 2px; }
.an-why-bit { display: inline; }
.an-why-bit + .an-why-bit::before { content: '·'; margin: 0 6px; color: #64748b; }
.an-ic { display: inline-block; margin-right: 5px; font-style: normal; }
.an-chips .an-plv { display: none; }

/* the sky while a face is on: the rest dims, its beam fires, its lines light up, the centre glows in its colour */
.an-node, .an-ray, .an-link { transition: opacity 0.3s ease, filter 0.3s ease; }
.an-stage.is-focus .an-node:not(.is-on):not(.is-near) { opacity: 0.3; filter: saturate(0.4); }
.an-stage.is-focus .an-node.is-near .an-face { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 30%, transparent), 0 0 22px color-mix(in srgb, var(--pc) 60%, transparent); }
.an-stage.is-focus .an-ray:not(.is-hot) { opacity: 0.22; }
.an-stage.is-focus .an-link { opacity: 0.18; }
.an-stage.is-focus .an-link.is-hot { opacity: 1; stroke: var(--hot, #fff); stroke-width: 1.6; stroke-dasharray: 3 3; animation: an-march 0.8s linear infinite;
    filter: drop-shadow(0 0 3px var(--hot, #fff)); }
.an-beam-hot { stroke: #fff; stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 22 100; opacity: 0; }
.an-ray.is-hot .an-beam-base { opacity: 1; filter: drop-shadow(0 0 6px var(--pc)) drop-shadow(0 0 12px var(--pc)); }
.an-ray.is-hot .an-beam-hot { opacity: 1; animation: an-zap 0.9s cubic-bezier(.5,0,.3,1) infinite; filter: drop-shadow(0 0 5px var(--pc)); }
.an-ray.is-hot .an-beam { opacity: 0; animation: none; }
.an-stage.is-focus .an-core { border-color: var(--hot); box-shadow: 0 0 0 8px color-mix(in srgb, var(--hot) 16%, transparent), 0 0 60px color-mix(in srgb, var(--hot) 65%, transparent);
    animation: none; transition: border-color 0.3s, box-shadow 0.3s; }
.an-body::before, .an-body::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    border: 2px solid var(--pc); opacity: 0; }
.an-node.is-on .an-body::before { animation: an-shock 1.5s cubic-bezier(.2,.7,.3,1) infinite; }
.an-node.is-on .an-body::after { animation: an-shock 1.5s cubic-bezier(.2,.7,.3,1) 0.75s infinite; }
.an-flash { position: absolute; left: 0; top: 0; z-index: -1; width: 100%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, #fff 0, color-mix(in srgb, var(--pc) 85%, transparent) 30%, transparent 68%); animation: an-flash 0.6s ease-out forwards; }
.an-spark { position: absolute; left: 50%; top: 50%; z-index: 3; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none;
    background: var(--sc, #fff); box-shadow: 0 0 8px var(--sc, #fff), 0 0 14px var(--sc, #fff); animation: an-spark 0.75s cubic-bezier(.15,.7,.3,1) forwards; }

/* the card of a face */
.an-tip { position: absolute; z-index: 8; width: 300px; max-width: calc(100vw - 32px); padding: 16px 16px 14px; border-radius: 18px; pointer-events: none; overflow: hidden;
    color: #fff; text-align: left; isolation: isolate;
    background: radial-gradient(280px 150px at 18% -10%, color-mix(in srgb, var(--pc, #00ddeb) 32%, transparent), transparent 72%),
        radial-gradient(220px 120px at 110% 110%, color-mix(in srgb, var(--an-c) 22%, transparent), transparent 70%), linear-gradient(180deg, #180d34, #0a0518);
    box-shadow: 0 26px 60px rgba(0,0,0,0.62), 0 0 46px color-mix(in srgb, var(--pc, #00ddeb) 38%, transparent); transform-origin: var(--ox, 50%) var(--oy, 100%); }
.an-tip.is-pop { animation: an-pop 0.46s cubic-bezier(.18,1.45,.42,1) both; }
.an-tip::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; transform: translateX(-120%);
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.16) 46%, rgba(255,255,255,0.04) 54%, transparent 64%); }
.an-tip.is-pop::after { animation: an-sheen 1.1s 0.12s ease-out both; }
.an-tip-edge { position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: conic-gradient(from var(--an-turn), var(--pc, #00ddeb), #d946ef, var(--orange, #f97316), #facc15, var(--pc, #00ddeb));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: an-edge 3.2s linear infinite; }
.an-tip-head { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.an-tip-face { position: relative; flex: none; width: 64px; height: 64px; }
.an-tip-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0b0520; border: 3px solid var(--pc, #00ddeb);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc, #00ddeb) 22%, transparent), 0 0 26px color-mix(in srgb, var(--pc, #00ddeb) 65%, transparent); }
.an-tip-lv { position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 99px;
    font-size: 0.8rem; font-weight: 900; line-height: 1; color: #0b0520; background: var(--pc, #00ddeb); border: 2px solid #0b0520; font-variant-numeric: tabular-nums; }
.an-tip-lv:empty { display: none; }
.an-tip-id { flex: 1; min-width: 0; }
.an-tip-id b { display: block; font-size: 1.14rem; font-weight: 900; line-height: 1.15; color: var(--pc, #00ddeb); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: 0 0 16px color-mix(in srgb, var(--pc, #00ddeb) 55%, transparent); }
.an-tip-id small { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #cbd5e1; }
.an-tip-label { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 0.75rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.an-tip-orbit { padding: 2px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0; text-transform: none; white-space: nowrap; color: #e2e8f0;
    background: color-mix(in srgb, var(--pc, #00ddeb) 14%, rgba(255,255,255,0.04)); border: 1px solid color-mix(in srgb, var(--pc, #00ddeb) 35%, transparent); }
.an-tip-orbit:empty { display: none; }
.an-tip-why { position: relative; display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.an-tip-why li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; line-height: 1.3; color: #e2e8f0; }
.an-tip.is-pop .an-tip-why li { animation: an-row 0.4s cubic-bezier(.2,.9,.3,1) both; animation-delay: calc(0.14s + var(--i, 0) * 0.065s); }
.an-tip-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 0.95rem; font-style: normal; line-height: 1;
    background: color-mix(in srgb, var(--pc, #00ddeb) 16%, rgba(255,255,255,0.03)); border: 1px solid color-mix(in srgb, var(--pc, #00ddeb) 32%, transparent); }
.an-tip-too { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 7px 10px; border-radius: 10px; font-size: 0.82rem; font-weight: 700;
    color: #fde68a; background: rgba(250,204,21,0.09); border: 1px solid rgba(250,204,21,0.3); }
.an-tip-too[hidden] { display: none; }
.an-tip-go { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 12px; font-size: 0.88rem; font-weight: 900;
    color: #0b0520; background: linear-gradient(90deg, var(--pc, #00ddeb), color-mix(in srgb, var(--pc, #00ddeb) 55%, #fff)); box-shadow: 0 8px 22px color-mix(in srgb, var(--pc, #00ddeb) 35%, transparent); }
@keyframes an-pop { 0% { opacity: 0; transform: translateY(10px) scale(0.55); } 60% { opacity: 1; transform: translateY(-2px) scale(1.035); } 100% { opacity: 1; transform: none; } }
@keyframes an-sheen { to { transform: translateX(120%); } }
@keyframes an-edge { to { --an-turn: 360deg; } }
@keyframes an-row { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes an-zap { 0% { stroke-dashoffset: 122; } 100% { stroke-dashoffset: 0; } }
@keyframes an-march { to { stroke-dashoffset: -12; } }
@keyframes an-shock { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes an-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); } }
@keyframes an-flash { 0% { opacity: 0.95; transform: scale(0.7); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes an-logo { from { opacity: 0.2; transform: scale(0.985); } to { opacity: 0.3; transform: scale(1.015); } }
@media (max-width: 640px) {
    .an-plv { min-width: 20px; height: 20px; border-width: 1.5px; }
    .an-node--out .an-plv { display: none; }
    .an-tip { width: 270px; padding: 14px 14px 12px; }
    .an-tip-face { width: 54px; height: 54px; }
    .an-tip-id b { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
    .an-tip.is-pop, .an-tip.is-pop::after, .an-tip-edge, .an-tip.is-pop .an-tip-why li, .an-ray.is-hot .an-beam-hot, .an-link.is-hot,
    .an-node.is-on .an-body::before, .an-node.is-on .an-body::after { animation: none; }
    .an-spark, .an-flash { display: none; }
    .an-tip-edge { background: linear-gradient(135deg, var(--pc, #00ddeb), #d946ef, var(--orange, #f97316)); }
}

/* ---------- net2 (01-11-2026, Mortimer: «darle más oscuridad al fondo, no ese morado, esto le daría más sensación de
   constelación»): a deep night sky behind the constellation, almost black with a cold blue depth, its own field of stars
   (img/an-sky.svg) and only a breath of the level's colour in the middle. On the card of /ape/<username> it fills the
   whole left part of the card, edge to edge, and fades into the side column (under 1000px: the top part, fading down).
   The sky sits inside the stage, under the stars, the logo and the rings; the card's overflow cuts it at its border. */
.an-sky { position: absolute; z-index: -2; pointer-events: none; inset: 0; border-radius: 50%;
    background: url(../img/an-sky.svg) center / 480px 480px repeat,
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--an-c, #00ddeb) 9%, transparent) 0, transparent 46%),
        radial-gradient(circle at 50% 50%, #0b0d1f 0, #060713 48%, #030309 100%); }
.an-card .an-sky { inset: -600px -17px -600px -240px; border-radius: 0;
    background: url(../img/an-sky.svg) calc(50% + 111.5px) 50% / 480px 480px repeat,
        radial-gradient(circle at calc(50% + 111.5px) 50%, color-mix(in srgb, var(--an-c, #00ddeb) 9%, transparent) 0, transparent 250px),
        radial-gradient(circle at calc(50% + 111.5px) 50%, #0b0d1f 0, #060713 260px, #030309 560px);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.an-card::before { z-index: 5; }
.an-card .an-logo img { filter: saturate(1.1) drop-shadow(0 0 22px rgba(56,189,248,0.22)); }
@media (max-width: 1000px) {
    .an-card .an-sky { inset: -600px -240px -18px;
        background: url(../img/an-sky.svg) 50% calc(50% + 291px) / 480px 480px repeat,
            radial-gradient(circle at 50% calc(50% + 291px), color-mix(in srgb, var(--an-c, #00ddeb) 9%, transparent) 0, transparent 230px),
            radial-gradient(circle at 50% calc(50% + 291px), #0b0d1f 0, #060713 250px, #030309 560px);
        -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent); }
}
@media (max-width: 640px) {
    .an-actions .btn { flex: 1 1 100%; white-space: nowrap; }     /* net2: «See the whole network →» on one line, Share under it */
}

/* ---------- netlive1 (01-11-2026, Mortimer: «darle un pulse ligero y relajado a lo que es el logo de basc que está en el
   fondo de la constelación»; «animaciones low cost pero chulísimas para cuando se está mirando la constelación mucho
   tiempo … enviar pulses desde nuestro centro a diferentes nodos/planetas y hacer micro explosiones … creamos el mejor
   network de toda solana»).
   The logo: a slow, calm beat every 7 s (it swells and glows a little, a soft ring of light leaves it and fades at the
   edge of the sky). The living sky (ape-network.js) after a few seconds without a touch: a wave from the centre that
   crosses every orbit, pulses from the centre that burst on a planet and run on to its friends, a volley to one orbit, a
   comet lapping an orbit, a face showing its card, shooting stars. Every effect is a small element made for it and
   removed when it ends; only transform and opacity move (the pulses: the dash of a line). «Reduce motion»: none of it. */
.an-logo img { animation: an-logo-beat 7s ease-in-out infinite; }
.an-logo::before { content: ''; position: absolute; inset: 16%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0.25;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--an-c, #00ddeb) 24%, transparent), transparent);
    animation: an-logo-glow 7s ease-in-out infinite; }
.an-logo::after { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0;
    background: radial-gradient(closest-side, transparent 84%, color-mix(in srgb, var(--an-c, #00ddeb) 50%, transparent) 93%, rgba(255,255,255,0.55) 96.5%, transparent 100%);
    transform: translate(-50%, -50%) scale(0.34); animation: an-logo-ring 7s cubic-bezier(.22,.6,.3,1) infinite; }
@keyframes an-logo-beat { 0%, 100% { opacity: 0.21; transform: scale(0.992); } 16% { opacity: 0.34; transform: scale(1.02); } 44% { opacity: 0.25; transform: scale(1.002); } }
@keyframes an-logo-glow { 0%, 100% { opacity: 0.25; } 16% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes an-logo-ring { 0%, 8% { opacity: 0; transform: translate(-50%, -50%) scale(0.34); } 16% { opacity: 0.6; } 66%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }

/* the living sky: the pieces ape-network.js makes for each effect */
.an-fx { pointer-events: none; }
.an-orb { position: absolute; z-index: 3; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff 0 28%, color-mix(in srgb, var(--pc, #fff) 70%, #fff) 42%, color-mix(in srgb, var(--pc, #fff) 60%, transparent) 60%, transparent 72%);
    box-shadow: 0 0 14px 4px color-mix(in srgb, var(--pc, #fff) 65%, transparent), 0 0 30px 10px color-mix(in srgb, var(--pc, #fff) 30%, transparent); }
.an-orb::before { content: ''; position: absolute; right: 50%; top: 50%; width: 56px; height: 4px; margin-top: -2px; border-radius: 4px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pc, #fff) 75%, transparent) 72%, #fff); }
.an-orb--thin { width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 10px 3px color-mix(in srgb, var(--pc, #fff) 60%, transparent); }
.an-orb--thin::before { width: 36px; height: 3px; margin-top: -1.5px; }
.an-lapper { position: absolute; left: 50%; top: 50%; z-index: 3; width: 0; height: 0; }
.an-orb--lap { top: 0; opacity: 1; transform: rotate(90deg); }
.an-orb--lap::before { width: 26px; }
.an-beam-base { transition: opacity 0.3s ease, filter 0.3s ease; }
.an-ray.is-sent .an-beam-base { opacity: 1; filter: drop-shadow(0 0 4px var(--pc)); }
.an-link { transition: opacity 0.3s ease, filter 0.3s ease, stroke 0.3s ease; }
.an-link.is-sent { stroke: rgba(255,255,255,0.7); }
.an-lap { fill: none; stroke: var(--pc, #fff); stroke-linecap: round; }
.an-ping { position: absolute; left: 50%; top: 50%; width: max(100%, 34px); aspect-ratio: 1; border-radius: 50%; border: 2.5px solid var(--pc); opacity: 0;
    box-shadow: 0 0 12px color-mix(in srgb, var(--pc) 65%, transparent), inset 0 0 8px color-mix(in srgb, var(--pc) 45%, transparent);
    animation: an-ping 1s cubic-bezier(.2,.7,.3,1) forwards; }
.an-nova { position: absolute; left: 50%; top: 50%; z-index: 2; width: max(170%, 64px); aspect-ratio: 1; border-radius: 50%; opacity: 0; mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0, color-mix(in srgb, var(--pc) 80%, transparent) 22%, color-mix(in srgb, var(--pc) 30%, transparent) 46%, transparent 70%);
    animation: an-nova 0.8s ease-out forwards; }
.an-nova--big { width: max(210%, 96px); animation-duration: 0.95s; }
@keyframes an-ping { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.9); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.3); } }
@keyframes an-nova { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }
.an-spark--mini { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.an-flash--mini { animation-duration: 0.5s; }
.an-kick { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--kc, #fff); opacity: 0;
    animation: an-shock 0.9s cubic-bezier(.2,.7,.3,1) forwards; }
.an-wave { position: absolute; left: 50%; top: 50%; z-index: 1; width: 100%; aspect-ratio: 1; border-radius: 50%; opacity: 0;
    background: radial-gradient(closest-side, transparent 78%, color-mix(in srgb, var(--an-c, #00ddeb) 16%, transparent) 88%,
        color-mix(in srgb, var(--an-c, #00ddeb) 55%, transparent) 95%, rgba(255,255,255,0.7) 97.5%, transparent 100%);
    transform: translate(-50%, -50%) scale(0.2); }
.an-meteor { position: absolute; left: 0; top: 0; z-index: -1; height: 2px; border-radius: 2px; opacity: 0; transform-origin: 100% 50%;
    background: linear-gradient(90deg, transparent, rgba(186,230,253,0.45) 55%, #fff); }
.an-meteor::after { content: ''; position: absolute; right: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 8px 2px rgba(255,255,255,0.75), 0 0 16px 4px rgba(125,211,252,0.35); }
@media (prefers-reduced-motion: reduce) {
    .an-logo img, .an-logo::before, .an-logo::after { animation: none; }
    .an-logo::after, .an-fx { display: none; }
}
