:root {
  --bg: linear-gradient(135deg, #e3e6ff, #f5f6fa);
  --card: #ffffff;
  --text: #222;
  --accent: #6c5ce7;
  --input-bg: #ffffff;
  --input-text: #000;
}

body.dark {
  --bg: radial-gradient(circle, #1a1a2e, #0f1020);
  --card: #1e1e2f;
  --text: #ffffff;
  --input-bg: #2c2c3e;
  --input-text: #fff;
}

body {
  margin: 0;
  font-family: Arial;
  background: var(--bg);
  color: var(--text);
  transition: all 0.4s ease;
}

.app {
  text-align: center;
  padding: 20px;
}

.layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

/* ROLETA */
.wheel-container {
  position: relative;
}

canvas {
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* SETA */
.pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid var(--text);
}

/* BOTÃO CENTRAL */
#spinCenter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* PAINEL */
.panel {
  background: var(--card);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: 0.4s;
}

/* TEXTAREA */
textarea {
  width: 240px;
  height: 150px;
  border-radius: 10px;
  padding: 10px;
  background: var(--input-bg);
  color: var(--input-text);
  border: 1px solid #ccc;
  transition: 0.3s;
}

/* BOTÕES */
button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  opacity: 0.9;
}

/* RESULTADO */
#result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
}

