.tagpage .crumbs { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.tagpage .crumbs a { color: var(--muted); text-decoration: none; }
.tag-hero { position: relative; padding: 26px 26px 24px; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(255, 79, 216, .08) 60%, rgba(58, 208, 255, .06)); border: 1px solid var(--line); }
.tag-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--tag-accent, #a855f7), transparent 70%); opacity: .35; pointer-events: none; }
.tag-hero .eyebrow { color: var(--tag-accent, var(--lime)); }
.tag-hero .section-title { font-size: clamp(28px, 5vw, 46px); margin: 8px 0 10px; max-width: 900px; }
.tag-hero p { max-width: 760px; margin: 0; line-height: 1.6; font-size: 16px; }
.tag-hero .tag-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-hero .tag-stats span { font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(10, 4, 30, .5); border: 1px solid var(--line); }
.tag-hero .tag-stats b { color: var(--lime); }
.tag-hero .btn { margin-top: 16px; }
.tag-section { margin-top: 34px; }
.tag-section:empty { display: none; }
.tag-section > h2, .tag-section-head h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 14px; }
.tag-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tag-section-head h2 { margin: 0; }
.tag-section-head .cm-sort { margin: 0; }
.ucard .badge-f { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; font-weight: 900; letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; background: rgba(10, 4, 30, .85); color: var(--lime); }
.ucard .desc { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* tag chips, used on tag pages, list pages, share pages and cards */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-decoration: none;
  background: rgba(168, 85, 247, .14); border: 1px solid rgba(196, 170, 255, .28); color: #e2d4ff; transition: background .2s, border-color .2s, transform .15s; }
.chip:hover { background: rgba(184, 255, 60, .14); border-color: var(--lime); color: #fff; transform: translateY(-1px); }
.chip .n { color: var(--lime); font-weight: 900; }
.tag-cloud .chip { font-size: 14px; padding: 8px 14px; }
.ucard .badge-f ~ .thumb img { object-position: center; }
.ucard .badge-f ~ .thumb { height: auto; aspect-ratio: 1200 / 630; }
.ucard h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.ucard h3 a { text-decoration: none; }
