﻿@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: radial-gradient(circle at 20% 20%, #f7f7ff 0%, #eef3ff 30%, #e6f5ff 60%, #f7f9ff 100%);
  --card: #ffffffee;
  --shadow: 0 26px 60px rgba(31, 57, 130, 0.15);
  --accent: #5c7cfa;
  --accent-2: #6153ff;
  --text: #1f2a44;
  --muted: #5f6a86;
  --border: #dce3f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(97, 83, 255, 0.1), rgba(92, 124, 250, 0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
}

.hero h1 {
  margin: 4px 0 6px;
  font-size: 32px;
}

.hero .lede {
  margin: 0;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}

.single {
  display: flex;
  justify-content: center;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #ecf0f8;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wheel-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

canvas#wheel {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.12));
  border-radius: 50%;
}

.pointer {
  position: absolute;
  right: -32px;
  width: 82px;
  height: 32px;
  background: linear-gradient(90deg, #d21e1e, #ff4b4b);
  clip-path: polygon(0 0, 70% 0, 70% 30%, 100% 50%, 70% 70%, 70% 100%, 0 100%);
  border: 3px solid #1f4c8c;
  border-left: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  border: none;
  background: linear-gradient(135deg, #5c7cfa, #7f5af0);
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 12px 24px rgba(92, 124, 250, 0.25);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(92, 124, 250, 0.35);
}

button:active {
  transform: translateY(0);
}

button.ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.info-card {
  width: 100%;
  background: #fdfdff;
  border: 1px solid #e8edfb;
  border-radius: 16px;
  padding: 14px;
}

.info-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.result {
  background: linear-gradient(120deg, rgba(92, 124, 250, 0.12), rgba(255, 107, 107, 0.12));
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 12px;
  min-height: 96px;
}

.result-label {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}

.result-definition {
  margin: 6px 0 0;
  color: var(--muted);
}

.fact-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.fact-list .fact {
  padding: 10px;
  border-radius: 10px;
  background: #f4f7ff;
  border: 1px solid #e1e6f5;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
  }
  .pointer {
    right: -18px;
  }
  .card {
    padding: 16px;
  }
}
