:root {
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --color-bg: oklch(30.33% .016 252.42);
  --color-text: oklch(97.807% .029 256.847);
  --color-dot-inactive: #444;
  --color-dot-active: #fff;
  --color-button-bg: oklch(97.807% .029 256.847);
  --color-button-text: var(--color-bg);
  --radius-lg: 16px;
  --spacing: 0.5rem;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers picker inside container */
  gap: 20px; /* adds vertical spacing */
}


#picker {
  margin: 20px auto;
  display: block;
}

#progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-dot-inactive);
  transition: background 0.3s;
}

.dot.active {
  background: var(--color-dot-active);
}

h2#color-name {
  font-size: 2.5rem;
  margin: 1rem 0;
  transition: color 0.3s;
}

#hex-display {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.5rem;
}

button {
  cursor: pointer;
  border-radius: var(--radius-lg);
  background-color: var(--color-button-bg);
  color: var(--color-button-text);
  border: none;
  width: 100%;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

button:hover {
  background-color: oklch(90% .03 250);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#result {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.color-box {
  width: 50px;
  height: 50px;
  display: inline-block;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.score {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-base-content);
}

.score .points {
  font-size: 2.5rem; /* bigger number */
  font-weight: 700;
  margin-right: 5px;
}

.color-comparison {
  display: flex;
  gap: 20px;
  align-items: center;
}

.color-comparison div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.round-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.round-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.round-num {
  opacity: 0.6;
  width: 20px;
}

.arrow {
  opacity: 0.6;
}

.round-score {
  margin-left: auto;
  font-weight: 600;
}