/* Absolute Gaming - monthly charitable causes (home page feature and causes.html).
   Copyright (c) 2026 Absolute Gaming LLC. All rights reserved. */
.cause-feature {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 26px 30px; border: 1px solid rgba(232, 184, 74, 0.35);
  background: linear-gradient(90deg, rgba(232, 116, 42, 0.12), var(--panel) 60%);
  box-shadow: var(--shadow);
}
.cause-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 10px; justify-items: start; }
.cause-text h2 { margin: 2px 0 0; display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cause-text p { margin: 0; color: var(--soft); max-width: 62ch; }
.cause-text .cause-note { color: var(--amber-2); font-weight: 600; }
.cause-text .btn-row { margin-top: 6px; }
.cause-paw { width: 34px; height: 34px; flex: none; fill: var(--amber); }
.cause-qr { flex: none; width: 190px; margin: 0; text-decoration: none; text-align: center; }
.cause-qr span { display: block; margin-top: 6px; font-size: 0.85rem; font-weight: 700; color: #1a0f08; }
@media (max-width: 760px) {
  .cause-feature { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .cause-qr { align-self: center; }
}
/* causes.html */
.center-row { justify-content: center; }
.cause-card { display: grid; gap: 10px; justify-items: start; }
.cause-card h3 { margin: 0; }
.cause-card p { margin: 0; color: var(--soft); }
.cause-share { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--amber-2); }
.cause-donors { display: grid; justify-items: center; gap: 12px; padding: 30px; }
.cause-donors .cause-paw { width: 48px; height: 48px; opacity: 0.85; }

/* chasing glow ring round the home page cause card: same orange arc, speed (1.8s) and clockwise
   direction as the November Update button in the header */
@property --cause-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.cause-feature { border-color: rgba(232, 184, 74, 0.25); }
.cause-feature::before, .cause-feature::after {
  content: ""; position: absolute; pointer-events: none;
  background: conic-gradient(from var(--cause-a), transparent 0deg, transparent 150deg, rgba(255, 122, 24, 0.55) 220deg, #ff8a24 290deg, #ffd27a 335deg, #fff6dc 352deg, #ff7a18 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cause-chase 1.8s linear infinite;
}
.cause-feature::before { inset: -2px; padding: 3px; border-radius: calc(var(--radius) + 2px); }
.cause-feature::after { inset: -12px; padding: 11px; border-radius: calc(var(--radius) + 12px); filter: blur(7px); opacity: 0.75; }
@keyframes cause-chase { to { --cause-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .cause-feature::before, .cause-feature::after { animation: none; } }
