:root {
  --bg: #f5f1ff;
  --panel: rgba(255,255,255,.88);
  --panel-soft: rgba(245,239,255,.9);
  --text: #201431;
  --muted: #675a79;
  --accent: #7b2cff;
  --accent-2: #16c7ff;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(115deg, rgba(123,44,255,.18), transparent 34%),
    linear-gradient(245deg, rgba(22,199,255,.2), transparent 34%),
    radial-gradient(circle at top, rgba(255,255,255,.96), transparent 44%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

.machine {
  width: min(100%, 420px);
  padding: 24px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(123,44,255,.18);
  box-shadow: 0 28px 80px rgba(68, 31, 120, 0.18);
  backdrop-filter: blur(14px);
}

header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.balance {
  font-size: 1rem;
  color: var(--muted);
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.reel {
  min-height: 120px;
  display: grid;
  place-items: center;
  background: var(--panel-soft);
  border: 1px solid rgba(123,44,255,.18);
  border-radius: 18px;
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

button#gira-btn {
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(123,44,255,.24);
}

button#gira-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.messaggio {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(123,44,255,.18);
  color: var(--text);
}

.webapp-warning {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
