/* The circle: the pot in the middle, members around it. Size comes from --ring (default 280px). */
.ring { position: relative; width: var(--ring, 280px); aspect-ratio: 1; flex: 0 0 auto; }
.ring-orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-orbit circle { fill: none; stroke: rgba(150, 90, 50, 0.3); stroke-width: 0.6; stroke-dasharray: 1.4 2.2; }
.ring-orbit .arc { stroke: var(--red); stroke-width: 1.1; stroke-dasharray: 100 100; stroke-linecap: round; opacity: 0.85; transition: stroke-dashoffset 1s linear; }
.ring-pot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 6%;
  /* a red packet seen from above: lacquer red with a gold rim */
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 48%),
    linear-gradient(150deg, #e0533a, var(--red) 45%, #8e2414);
  box-shadow:
    inset 0 0 0 3px rgba(229, 189, 92, 0.85),
    inset 0 1px 0 4px rgba(255, 230, 170, 0.35),
    inset 0 -10px 20px rgba(90, 20, 10, 0.35),
    0 16px 30px -12px rgba(140, 35, 15, 0.55);
  transition: box-shadow 0.4s ease;
}
.ring-pot.glow {
  box-shadow:
    inset 0 0 0 3px rgba(229, 189, 92, 0.95),
    inset 0 -10px 20px rgba(90, 20, 10, 0.35),
    0 0 0 9px rgba(229, 189, 92, 0.28),
    0 0 40px 6px rgba(207, 58, 36, 0.35),
    0 16px 30px -12px rgba(140, 35, 15, 0.55);
}
.ring-amount { font-size: calc(var(--ring, 280px) * 0.08); font-weight: 600; color: #fff3dc; line-height: 1.1; }
.ring-label { font-size: calc(var(--ring, 280px) * 0.04); color: rgba(255, 236, 205, 0.85); margin-top: 3px; line-height: 1.25; }
.ring-m { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; transition: transform 0.3s var(--spring); }
.ring-av {
  position: relative;
  width: calc(var(--ring, 280px) * 0.17);
  min-width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: calc(var(--ring, 280px) * 0.05);
  color: var(--ink-2);
  background: linear-gradient(150deg, #fffaf1, #eadbc4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(120, 70, 30, 0.12), 0 6px 14px -6px rgba(60, 30, 10, 0.35);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.ring-m.bot .ring-av { background: linear-gradient(150deg, #f6e7c2, #e2c48a); }
.ring-m.me .ring-av { color: #fff; background: linear-gradient(150deg, #4a3d33, var(--ink)); }
.ring-m.empty .ring-av { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1.5px rgba(150, 100, 60, 0.35); font-weight: 400; }
.ring-m.paid .ring-av { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 5px var(--gold-2), 0 6px 14px -6px rgba(60, 30, 10, 0.35); }
.ring-m.won .ring-av::after { content: "★"; position: absolute; left: -6px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; background: var(--ink-2); box-shadow: 0 0 0 2px #fff; }
.ring-m.winner .ring-av { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 5px var(--red), 0 0 22px 4px rgba(207, 58, 36, 0.4); }
.ring-m.winner { transform: translate(-50%, -50%) scale(1.08); }
.ring-name { font-size: 12px; font-weight: 600; color: var(--ink-2); background: rgba(255, 250, 242, 0.9); padding: 2px 8px; border-radius: 99px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-badge { position: absolute; top: -6px; right: -12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; display: none; place-items: center; color: #fff; white-space: nowrap; }
.ring-badge.star { display: grid; background: var(--red); }
.ring-badge.tick { display: grid; background: var(--gold); }
.ring-badge.bid { display: grid; background: var(--ink); }
.ring-coin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #f2c14e 45%, #a8781f);
  box-shadow: 0 2px 6px rgba(120, 80, 20, 0.45);
  z-index: 2;
}
.flow-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.flow-dot { height: 34px; padding: 0 13px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: rgba(255, 251, 244, 0.6); border: 1px solid rgba(255, 255, 255, 0.85); }
.flow-dot.on { background: var(--ink); color: #fff; border-color: transparent; }
