/* 骰子工具 */
.tools-page--dice .dice-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.tools-page--dice .color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  margin-top: 4px;
}

.tools-page--dice .per-dice-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  width: 100%;
}

.tools-page--dice .result-area {
  margin-top: 12px;
}

.tools-page--dice .dice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
}

.tools-page--dice .dice-box {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  border: 2px solid #e6e9f2;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tools-page--dice .dice-value {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  z-index: 1;
  text-align: center;
  padding: 0 6px;
  word-break: break-word;
}

.tools-page--dice .dice-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: #475569;
}

.tools-page--dice .dice-meta .pill {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  padding: 4px 10px;
  border-radius: 999px;
}

.tools-page--dice .dice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

@media (max-width: 768px) {
  .tools-page--dice .dice-box {
    width: 76px;
    height: 76px;
  }

  .tools-page--dice .dice-value {
    font-size: 26px;
  }

  .tools-page--dice .dice-actions .tool-btn {
    flex: 1 1 calc(50% - 10px);
  }
}
