/* สุ่ม — reuses .step-row/.step-chip from style.css */

.wheel-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-bottom: 12px;
}

.wheel-mode-row {
  display: flex;
  gap: 8px;
}

.dice-display {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 52px;
}

.dice-display.empty {
  color: var(--sub);
  font-size: 40px;
}

.dice-die {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dice-face {
  line-height: 1;
}

.dice-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
}

.dice-sum {
  color: var(--sub);
  font-size: 13px;
}

.wheel-display {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--card-hi), var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.wheel-display.empty {
  color: var(--sub);
  font-size: 36px;
}

.wheel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.wheel-overlay.show {
  opacity: 1;
}

.wheel-overlay-circle {
  width: min(62vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #a66bff, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  transform: rotate(-540deg) scale(0.4);
  transition: transform 0.6s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.wheel-overlay.show .wheel-overlay-circle {
  transform: rotate(0deg) scale(1);
}

.wheel-overlay-circle span {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.08);
}

.wheel-overlay-hint {
  color: var(--sub);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s ease 0.35s;
}

.wheel-overlay.show .wheel-overlay-hint {
  opacity: 1;
}

.dice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.dice-overlay.show {
  opacity: 1;
}

.dice-overlay-faces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: min(85vw, 400px);
  font-size: 64px;
  color: #fff;
  transform: scale(0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dice-overlay.show .dice-overlay-faces {
  transform: scale(1);
}

.dice-overlay-die {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dice-overlay-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.dice-overlay-sum {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease 0.35s;
}

.dice-overlay.show .dice-overlay-sum {
  opacity: 1;
}

.dice-overlay.show .wheel-overlay-hint {
  opacity: 1;
}
