/* mentioncard1 (21-10-2026): the card of an @mention and the @ autocomplete of the post editors and Ape Sites comments
   (mention-card.js). One file for bascdao.com and <name>.bascdao.com: it brings its own colours. */
.cm-mention[data-mention] { cursor: pointer; border-radius: 6px; padding: 0 2px; margin: 0 -2px; transition: background 0.18s, box-shadow 0.18s; }
.cm-mention[data-mention]:hover, .cm-mention[data-mention][aria-expanded="true"], .cm-mention[data-mention]:focus-visible {
    background: color-mix(in srgb, currentColor 16%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); outline: none; }
.news-body .cm-mention, .nf-body .cm-mention { color: var(--origin, #00ddeb); font-weight: 800; text-shadow: 0 0 10px color-mix(in srgb, var(--origin, #00ddeb) 30%, transparent); }

.umc-card { --umc-tone: #00ddeb; --umc-a1: var(--umc-tone); --umc-a2: #9945ff; --umc-a3: #14f195;
    position: fixed; z-index: 1200; left: 0; top: 0; width: 320px; max-width: calc(100vw - 24px); overflow: hidden;
    border-radius: 20px; color: #e8ecf6; font-size: 0.9rem; line-height: 1.35; text-align: left;
    background: linear-gradient(180deg, rgba(27, 15, 52, 0.96), rgba(12, 7, 26, 0.98));
    border: 1px solid color-mix(in srgb, var(--umc-tone) 45%, rgba(255,255,255,0.08));
    box-shadow: 0 26px 60px -12px rgba(0,0,0,0.75), 0 0 0 1px rgba(0,0,0,0.4), 0 0 42px -10px color-mix(in srgb, var(--umc-tone) 55%, transparent);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    opacity: 0; transform: translateY(6px) scale(0.98); transform-origin: 50% 0; transition: opacity 0.18s ease, transform 0.22s cubic-bezier(.2,.9,.25,1.2); }
.umc-card.is-above { transform-origin: 50% 100%; transform: translateY(-6px) scale(0.98); }
.umc-card.is-in { opacity: 1; transform: none; }
.umc-card[hidden] { display: none; }

.umc-cover { position: relative; height: 86px; overflow: hidden;
    background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--umc-a1) 75%, transparent), transparent 60%),
                radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--umc-a2) 70%, transparent), transparent 62%),
                linear-gradient(135deg, color-mix(in srgb, var(--umc-a3) 40%, #1a0d33), #120a24); }
.umc-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(12,7,26,0.92)); }
.umc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: umc-drift 14s ease-in-out infinite alternate; }
.umc-cover-shine { position: absolute; inset: -40% -60%; z-index: 1; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.16) 50%, transparent 58%);
    animation: umc-shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes umc-drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-2%, -3%); } }
@keyframes umc-shine { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

.umc-head { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 12px; margin: -40px 16px 0; }
.umc-avatar { flex: 0 0 auto; width: 72px; height: 72px; padding: 3px; border-radius: 50%;
    background: conic-gradient(from 210deg, var(--umc-tone), var(--umc-a2), var(--umc-a3), var(--umc-tone));
    box-shadow: 0 8px 22px rgba(0,0,0,0.55), 0 0 18px color-mix(in srgb, var(--umc-tone) 45%, transparent); }
.umc-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #160a2e; border: 2px solid #120a24; }
.umc-who { display: grid; min-width: 0; padding-bottom: 4px; }
.umc-name { overflow: hidden; font-size: 1.08rem; font-weight: 900; letter-spacing: 0.01em; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.umc-handle { overflow: hidden; font-size: 0.82rem; font-weight: 700; color: #a6aec4; white-space: nowrap; text-overflow: ellipsis; }

.umc-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 14px; }
.umc-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em;
    text-transform: uppercase; color: #cbd2e4; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.umc-pill--team { --xc: var(--umc-tone); color: color-mix(in srgb, var(--xc) 70%, #fff); background: color-mix(in srgb, var(--xc) 18%, transparent);
    border-color: color-mix(in srgb, var(--xc) 55%, transparent); box-shadow: 0 0 14px -4px color-mix(in srgb, var(--xc) 70%, transparent); }
.umc-pill--site { color: #0b0616; border: 0; background: linear-gradient(135deg, #9945ff, #14f195); }

.umc-site { margin: 0 12px 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); }
.umc-site-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.umc-site-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.umc-site-words { display: grid; min-width: 0; }
.umc-site-words b { overflow: hidden; font-size: 0.9rem; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.umc-site-words .umc-host { overflow: hidden; font-size: 0.72rem; font-weight: 800; color: color-mix(in srgb, var(--umc-a1) 75%, #fff); white-space: nowrap; text-overflow: ellipsis; }
.umc-site-words span { margin-top: 2px; display: -webkit-box; overflow: hidden; font-size: 0.78rem; color: #a6aec4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.umc-apes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.umc-ape { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: #160a2e; border: 1px solid rgba(255,255,255,0.1); }
.umc-ape img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.umc-ape:hover img { transform: scale(1.08); }
.umc-ape i { position: absolute; left: 3px; right: 3px; bottom: 3px; overflow: hidden; padding: 1px 2px; border-radius: 6px; font-size: 0.5rem; font-style: normal;
    font-weight: 900; text-align: center; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; text-overflow: ellipsis; color: #fff; background: rgba(0,0,0,0.6); }
.umc-ape { --tc: #9ca3af; }
.umc-ape--mythic { --tc: #ff2a3d; } .umc-ape--legendary { --tc: #fbbf24; } .umc-ape--epic { --tc: #c084fc; }
.umc-ape--rare { --tc: #60a5fa; } .umc-ape--uncommon { --tc: #22c55e; }
.umc-ape[class*="umc-ape--"] { border-color: color-mix(in srgb, var(--tc) 70%, transparent); }
.umc-ape--mythic, .umc-ape--legendary { box-shadow: 0 0 10px -2px color-mix(in srgb, var(--tc) 65%, transparent); }
.umc-ape i { color: color-mix(in srgb, var(--tc) 55%, #fff); }
.umc-site-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.umc-stat { font-size: 0.76rem; font-weight: 700; color: #a6aec4; }
.umc-go { display: inline-flex; align-items: center; min-width: 0; overflow: hidden; padding: 7px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 900;
    color: #0b0616; text-decoration: none; white-space: nowrap; text-overflow: ellipsis;
    background: linear-gradient(135deg, var(--umc-a1), var(--umc-a2) 60%, var(--umc-a3)); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--umc-a1) 70%, transparent);
    transition: transform 0.18s, filter 0.18s; }
.umc-go:hover { transform: translateY(-1px); filter: brightness(1.1) saturate(1.1); }
.umc-go span { flex: 0 0 auto; }

.umc-sk { display: block; height: 12px; width: 140px; margin: 4px 0; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    background-size: 200% 100%; animation: umc-sk 1.1s linear infinite; }
.umc-sk--short { width: 90px; }
.umc-sk--pill { width: 84px; height: 20px; border-radius: 999px; }
.umc-card.is-loading .umc-avatar { background: rgba(255,255,255,0.08); }
@keyframes umc-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.umc-error { margin: 0; padding: 18px 16px; font-weight: 700; color: #fca5a5; }

/* Phones: a sheet from the bottom of the screen, over a dimmed page */
.umc-backdrop { position: fixed; inset: 0; z-index: 1199; background: rgba(5,2,12,0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.umc-backdrop[hidden] { display: none; }
.umc-card--sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: none; margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom); border-radius: 22px 22px 0 0; transform: translateY(24px); }
.umc-card--sheet.is-in { transform: none; }
.umc-card--sheet::before { content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,0.45); }
.umc-card--sheet .umc-cover { height: 104px; }
.umc-card--sheet .umc-site { margin-bottom: 16px; }

/* @ autocomplete (post editors, Ape Sites comments) */
.umc-list { position: fixed; z-index: 1210; display: grid; gap: 2px; max-height: 236px; overflow: auto; padding: 6px; border-radius: 12px;
    background: #120a24; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.umc-option { display: grid; grid-template-columns: 26px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px; border-radius: 9px;
    font: inherit; font-size: 0.88rem; text-align: left; color: #e2e8f0; cursor: pointer; background: none; border: 0; }
.umc-option img { border-radius: 50%; }
.umc-option b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.umc-option span { overflow: hidden; color: #94a3b8; white-space: nowrap; text-overflow: ellipsis; }
.umc-option:hover, .umc-option.is-active { background: rgba(0,221,235,0.16); }
.umc-option.is-active span { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .umc-card, .umc-card.is-above, .umc-card--sheet { transition: none; transform: none; }
    .umc-cover-img, .umc-cover-shine, .umc-sk { animation: none; }
}

/* giveaways3 (22-10-2026): the team pill in every @ suggestion list (mention-card.js, threads.js, giveaway.js) and next
   to giveaway participants, the same colours as next to their comments (team.badge_of). */
.umc-option:has(.umc-tag), .cc-mention:has(.umc-tag) { grid-template-columns: 26px auto minmax(0, 1fr) auto; }
.umc-tag { --xc: #00ddeb; flex: none; justify-self: end; max-width: 140px; overflow: hidden; padding: 2px 8px; border-radius: 999px; font-style: normal;
    font-size: 0.62rem; font-weight: 900; letter-spacing: 0.06em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis;
    color: color-mix(in srgb, var(--xc) 62%, #fff); background: color-mix(in srgb, var(--xc) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--xc) 55%, transparent); }

/* giveaways5 (22-10-2026): a host's record of community giveaways, linking to their history on /giveaways */
.umc-gw { display: flex; align-items: center; gap: 11px; margin: 0 12px 12px; padding: 10px 12px; border-radius: 14px; color: #e2e8f0; text-decoration: none;
    background: linear-gradient(120deg, rgba(153,69,255,0.16), rgba(20,241,149,0.1)); border: 1px solid rgba(153,69,255,0.35); transition: border-color .2s ease, transform .2s ease; }
.umc-gw:hover { border-color: rgba(20,241,149,0.6); transform: translateY(-1px); }
.umc-gw-icon { flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: conic-gradient(#f97316 0 25%, #9945ff 0 50%, #14f195 0 75%, #00ddeb 0); box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 0 14px rgba(153,69,255,0.45); }
.umc-gw-text { display: grid; min-width: 0; }
.umc-gw-text b { font-size: 0.86rem; }
.umc-gw-text small { font-size: 0.74rem; color: #a7f3d0; }
.umc-gw-go { margin-left: auto; color: #14f195; font-weight: 800; }
