/* Spin Wheel — tool-specific */
.page { padding: 40px 20px; max-width: 1000px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 20px; font-size: 14px; }

.wheel-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
  align-items: start;
}

.wheel-stage {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 16px;
  padding: 24px;
}
.wheel-pointer {
  position: absolute; top: 14px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #ff4444;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
#wheel {
  display: block; max-width: 100%;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.21, 1);
}
.spin-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: #ff4444; color: #fff; border: 4px solid #fff;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; z-index: 4;
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}
.spin-btn:hover { background: #ff5555; }
.spin-btn:disabled { background: #444; box-shadow: none; cursor: not-allowed; }

.wheel-controls .form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.opt-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.wheel-controls textarea {
  background: #0d0d0d; border: 1px solid #2a2a2a; color: #fff;
  padding: 10px 12px; border-radius: 6px; font-size: 14px;
  resize: vertical; line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 280px;
}
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #ccc; }
.checkbox-label input { accent-color: #ff4444; }

.winner-banner {
  text-align: center; margin-top: 24px; padding: 20px;
  background: rgba(255, 68, 68, 0.08); border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 12px; animation: pop 0.4s cubic-bezier(0.5, 1.6, 0.3, 1);
}
@keyframes pop { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.winner-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.winner-name { font-size: 28px; font-weight: 700; color: #fff; }

@media (max-width: 800px) {
  .wheel-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
}
