.tool-panel__wheel--picker {
  align-content: start;
  gap: 1rem;
}

.name-picker-result,
.name-picker-preview {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.name-picker-result {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  min-height: 15rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(255, 225, 235, 0.8), rgba(255, 255, 255, 0.96) 38%),
    rgba(255, 255, 255, 0.96);
}

.name-picker-result__value {
  margin: auto 0 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.name-picker-preview {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
}

.name-picker-preview__header {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  justify-content: space-between;
}

.name-picker-preview__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.name-picker-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.name-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  background: rgba(77, 135, 255, 0.1);
  border: 1px solid rgba(77, 135, 255, 0.14);
  color: #3457a8;
  font-weight: 600;
  line-height: 1.2;
}

.tool-panel__wheel--coin {
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
}

.coin-tool {
  position: relative;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  transform-style: preserve-3d;
  cursor: pointer;
}

.coin-tool__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  backface-visibility: hidden;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.22),
    0 24px 50px rgba(217, 45, 101, 0.18);
}

.coin-tool__face--front {
  background: radial-gradient(circle at top left, #ff9bb9, #ef2f68 62%, #c61f50);
}

.coin-tool__face--back {
  background: radial-gradient(circle at top left, #7fb0ff, #4d87ff 62%, #3457a8);
  transform: rotateY(180deg);
}

.coin-tool--heads {
  transform: rotateY(0deg);
}

.coin-tool--tails {
  transform: rotateY(180deg);
}

.coin-tool--flipping {
  animation: coin-flip-spin 1.4s ease-in-out;
}

.coin-result,
.coin-history {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.coin-result {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
}

.coin-result__value {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.coin-history {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.coin-history__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.coin-history__item {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 47, 104, 0.08);
  border: 1px solid rgba(239, 47, 104, 0.14);
  color: var(--accent-dark);
  font-weight: 600;
}

.tool-panel__wheel--number {
  align-content: start;
  gap: 1rem;
}

.decision-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
}

.decision-toggle-grid--wide-labels {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.decision-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(239, 47, 104, 0.14);
  background: rgba(255, 250, 251, 0.95);
  font-weight: 600;
  color: var(--text);
}

.decision-option input {
  accent-color: var(--accent);
  margin-top: 0.2rem;
}

.decision-option span {
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.number-result,
.number-history {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.number-result {
  display: grid;
  gap: 0.75rem;
  padding: 1.45rem 1.5rem;
  min-height: 15rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(255, 230, 188, 0.72), rgba(255, 255, 255, 0.96) 40%),
    rgba(255, 255, 255, 0.96);
}

.number-result__value {
  margin: auto 0 0;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.letter-result__value {
  word-break: break-word;
}

.number-history {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.tool-helper {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.number-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tool-panel__wheel--dice {
  align-content: start;
  gap: 1rem;
}

.dice-tool,
.dice-result,
.dice-history {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.dice-tool {
  min-height: 15rem;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(181, 153, 255, 0.28), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.96);
}

.dice-tool__type {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(138, 99, 210, 0.1);
  color: #6b47b1;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dice-tool__value {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.dice-tool--rolling {
  animation: dice-bounce 0.9s ease;
}

.dice-result,
.dice-history {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.dice-result__value {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.tool-panel__wheel--timer {
  align-content: start;
  gap: 1rem;
}

.tool-panel__wheel--teams {
  align-content: start;
  gap: 1rem;
}

.team-generator-summary,
.team-generator-output {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.team-generator-summary {
  display: grid;
  gap: 0.75rem;
  padding: 1.45rem 1.5rem;
  min-height: 11rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(176, 227, 183, 0.46), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.96);
}

.team-generator-summary__value {
  margin: auto 0 0;
  font-size: clamp(1.8rem, 4.6vw, 3.2rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.team-generator-output {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.team-generator-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: rgba(79, 163, 95, 0.08);
  border: 1px solid rgba(79, 163, 95, 0.16);
}

.team-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.team-card__members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.team-member-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(79, 163, 95, 0.18);
  color: #2f6f3b;
  font-weight: 600;
  line-height: 1.2;
}
@keyframes coin-flip-spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(1800deg);
  }
}

@keyframes dice-bounce {
  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-10deg) scale(1.04);
  }

  50% {
    transform: rotate(12deg) scale(0.98);
  }

  75% {
    transform: rotate(-6deg) scale(1.02);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

