.ur-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 640px;
}

.ur-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  padding: 8px;
  border-radius: 14px;
  background: #5b3a1e;
}

.ur-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #e9d5a5;
  cursor: pointer;
}

.ur-cell.gap {
  visibility: hidden;
}

.ur-cell.ros {
  background: radial-gradient(circle, #b91c1c 18%, #fde68a 20%, #fde68a 34%, #1d4ed8 36%, #1d4ed8 48%, #e9d5a5 50%);
}

.ur-cell.can {
  box-shadow: inset 0 0 0 4px var(--success);
}

.ur-cell.from .ur-pc {
  box-shadow: 0 0 0 4px var(--warning);
}

.ur-cell.last {
  outline: 3px solid rgba(255, 255, 255, 0.7);
}

.ur-pc {
  display: inline-block;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
}

.ur-pc.s0 {
  background: #f8fafc;
  border: 2px solid #94a3b8;
}

.ur-pc.s1 {
  background: #1f2937;
  border: 2px solid #000;
}

.ur-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  cursor: pointer;
}

.ur-pool .ur-pc {
  width: 22px;
}

.ur-pool.can {
  box-shadow: 0 0 0 3px var(--warning);
}

.ur-dice {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
}

.ur-die {
  width: 26px;
  height: 26px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #a8a29e;
}

.ur-die.on {
  background: radial-gradient(circle at 50% 70%, #fff 20%, #a8a29e 22%);
}

.ur-dice.rolling .ur-die {
  animation: ur-roll 0.8s cubic-bezier(0.25, 0.8, 0.35, 1);
}

@keyframes ur-roll {
  0% {
    transform: translateY(-8px) rotate(-450deg);
  }
  75% {
    transform: translateY(1px) rotate(6deg);
  }
  100% {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ur-dice.rolling .ur-die {
    animation: none;
  }
}

.ur-dice b {
  margin-left: 6px;
  font-size: 1.6rem;
}

.ur-note {
  min-height: 1.3em;
  font-weight: 700;
}
