/* Rangoli: a floor of packed earth, a small design to copy, brass bowls of powder. */
.rg-col { gap: 8px; padding: 6px 10px 8px; direction: ltr; }
.rg-goal {
  flex: none;
  padding: 6px;
  border-radius: 50%;
  background: var(--lapis-deep);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 177, 59, 0.14), 0 6px 16px rgba(0, 0, 0, 0.35);
}
.rg-target { display: block; width: clamp(64px, 13vh, 112px); height: clamp(64px, 13vh, 112px); }
.rg-wrap::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(100%, 100cqh); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 8, 19, 0.9) 0 62%, rgba(38, 8, 19, 0) 71%);
  pointer-events: none;
}
.rg-wrap { container-type: size; }
.rg-wrap canvas { position: relative; cursor: pointer; }
.rg-bowls { flex: none; display: flex; justify-content: center; gap: clamp(8px, 2.6vw, 16px); min-height: 52px; align-items: center; }
.rg-bowl {
  position: relative;
  width: clamp(42px, 13vw, 56px); height: clamp(42px, 13vw, 56px);
  padding: 0;
  border-radius: 50%;
  border: 3px solid #C98A2B;
  background: radial-gradient(circle at 50% 40%, #8A5A1C, #4E300C 72%);
  box-shadow: inset 0 2px 0 rgba(255, 230, 170, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}
.rg-heap {
  position: absolute;
  top: 12%; right: 12%; bottom: 12%; left: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 42%), radial-gradient(circle, var(--p) 55%, rgba(0, 0, 0, 0.28) 100%), var(--p);
}
.rg-bowl.is-on { transform: translateY(-5px) scale(1.12); border-color: var(--parchment); box-shadow: 0 0 0 3px var(--gold), 0 8px 14px rgba(0, 0, 0, 0.45); }
.rg-bowl:focus-visible { outline: 3px solid var(--parchment); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rg-bowl { transition: none; } }
/* short and wide (a phone on its side): design, floor and bowls sit in a row */
@media (orientation: landscape) and (max-height: 520px) {
  .rg-col { flex-direction: row; gap: 14px; }
  .rg-wrap { height: 100%; width: auto; }
  .rg-bowls { flex-wrap: wrap; width: 124px; align-content: center; }
  .rg-target { width: 72px; height: 72px; }
}
/* on the narrowest phones the title needs the room; the design number is in the Levels sheet */
@media (max-width: 350px) { .rg-lv { display: none; } }
