.tool-main {
  max-width: 800px;
  position: relative;
}

.card { padding: 1.25rem; }

textarea { min-height: 160px; }

.btn-sm    { padding: 0.45rem 1rem; font-size: 0.875rem; }
.btn-large { padding: 0.75rem 2.5rem; font-size: 1.1rem; }

.layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.wheel-section { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.input-section { flex: 1; min-width: 200px; }

.canvas-wrap {
  position: relative;
  width: 320px;
  height: 320px;
}
#wheel-canvas { display: block; border-radius: 50%; }

.wheel-btns { display: flex; gap: 0.75rem; }

.apply-btn { margin-top: 0.75rem; }

/* 結果ポップアップ */
.result-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.result-inner {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90vw;
}
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-label {
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}
.result-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  word-break: break-all;
}

@media (max-width: 560px) {
  .canvas-wrap, #wheel-canvas { width: 280px; height: 280px; }
  .layout { justify-content: center; }
}
