/* THE SERPENT SPEAKS — latest post from @xalrethrp (homepage, js/latest-tweet.js) */
.xcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; align-items: center;
  margin: 8px 0 44px; padding: 30px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(166, 107, 255, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(26, 16, 41, 0.92), rgba(10, 6, 19, 0.95));
  border: 1px solid rgba(185, 140, 255, 0.3);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.xcard::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--xa, 0deg), transparent 0 70%, rgba(224, 196, 255, 0.75) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: xcard-orbit 9s linear infinite;
}
@property --xa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes xcard-orbit { to { --xa: 360deg; } }
.xcard .eyebrow { margin: 0 0 6px; text-align: left; }
.xcard h2 { margin: 0 0 14px; text-align: left; }
.xcard-side > p { color: var(--bone-dim); margin: 14px 0 18px; }
.xcard .btn-row { justify-content: flex-start; margin: 0; }
.xcard-who { display: flex; align-items: center; gap: 12px; }
.xcard-avatar { position: relative; width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #2a1746, #0d0818); border: 1px solid rgba(185, 140, 255, 0.5); }
.xcard-avatar img { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(166, 107, 255, 0.6)); }
.xcard-avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(185, 140, 255, 0.5); animation: xcard-ring 2.6s ease-out infinite; }
@keyframes xcard-ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
.xcard-who b { display: block; font-family: var(--serif-display); letter-spacing: .05em; font-weight: 600; }
.xcard-who span span, .xcard-who .handle { color: var(--gold); font-size: 1rem; }
.xcard-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--serif-display); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--venom); }
.xcard-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--scale-bright); box-shadow: 0 0 10px var(--scale-bright); animation: xcard-blink 1.8s ease-in-out infinite; }
@keyframes xcard-blink { 50% { opacity: .3; } }

.xcard-post { position: relative; min-height: 220px; display: grid; align-items: center; }
.xpost-slot { position: relative; }

/* the post, in the Coil's colors */
.xpost {
  position: relative; padding: 22px 22px 18px; border-radius: 18px; color: var(--bone);
  background: radial-gradient(420px 200px at 100% 0%, rgba(166, 107, 255, 0.16), transparent 70%), linear-gradient(170deg, #150c24, #08050f);
  border: 1px solid rgba(185, 140, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: xpost-in .5s ease-out both;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.xpost:hover { border-color: rgba(224, 196, 255, 0.6); transform: translateY(-2px); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(166, 107, 255, 0.25); }
.xpost::before { content: "\201C"; position: absolute; right: 22px; bottom: -18px; font-family: var(--serif-display); font-size: 8rem; line-height: 1; color: rgba(166, 107, 255, 0.08); pointer-events: none; }
@keyframes xpost-in { from { opacity: 0; transform: translateY(10px); } }
.xpost-head { display: flex; align-items: center; gap: 12px; }
.xpost-ava { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #2a1746, #07040d); border: 1px solid rgba(185, 140, 255, 0.55); }
.xpost-ava img { width: 32px; height: 32px; filter: drop-shadow(0 0 6px rgba(166, 107, 255, 0.7)); }
.xpost-name { min-width: 0; }
.xpost-name b { display: block; font-family: var(--serif-display); font-size: .95rem; letter-spacing: .05em; color: #fff; }
.xpost-name a { color: var(--gold); text-decoration: none; font-size: 1rem; }
.xpost-name a:hover { color: var(--venom); }
.xpost-xlink { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--venom); border: 1px solid var(--line); transition: all .2s; }
.xpost-xlink:hover { color: #fff; background: rgba(166, 107, 255, 0.2); border-color: rgba(224, 196, 255, 0.6); }
.xpost-x { width: 16px; height: 16px; }
.xpost-text { position: relative; margin: 16px 0 14px; font-size: 1.24rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.xpost-text a { color: var(--venom); text-decoration-color: rgba(224, 196, 255, 0.4); }
.xpost-text a:hover { color: #fff; }
.xpost-text.muted { color: var(--bone-dim); font-style: italic; }
.xpost-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--serif-display); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dim); }
.xpost-foot a { color: var(--gold); text-decoration: none; margin-left: auto; }
.xpost-foot a:hover { color: var(--venom); }

.xpost-skel { height: 200px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(166, 107, 255, 0.05) 30%, rgba(166, 107, 255, 0.14) 50%, rgba(166, 107, 255, 0.05) 70%) 0 0 / 300% 100%;
  animation: xpost-shimmer 1.6s linear infinite; }
@keyframes xpost-shimmer { to { background-position: -150% 0; } }

@media (max-width: 860px) {
  .xcard { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .xcard::before, .xcard-avatar::after, .xcard-live::before, .xpost, .xpost-skel { animation: none; }
}
