:root {
  --bg: #0b1118;
  --surface: #111923;
  --surface-2: #151f2b;
  --surface-3: #1b2735;
  --text: #e5edf5;
  --muted: #93a2b7;
  --accent: #6565fb;
  --accent-strong: #5252e0;
  --ring: rgba(101, 101, 251, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(101, 101, 251, 0.18), transparent 55%),
    radial-gradient(80% 80% at 80% 10%, rgba(68, 120, 255, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent),
    var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(8, 12, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.header {
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(101, 101, 251, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}

.brand img {
  height: 16px;
  width: auto;
  display: block;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.status {
  color: var(--muted);
  margin: 0 0 16px;
}

.timer {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.challenge {
  display: grid;
  gap: 14px;
}

.prompt {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
}

.slider-section {
  display: grid;
  gap: 2px;
}

.custom {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 19, 27, 0.55);
}

.custom-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.custom-list {
  display: grid;
  gap: 12px;
}

.question-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.question-title {
  font-weight: 600;
}

.question-options {
  display: grid;
  gap: 8px;
}

.question-options button {
  background: rgba(101, 101, 251, 0.1);
  border: 1px solid rgba(101, 101, 251, 0.24);
  color: var(--text);
  font-weight: 600;
}

.question-options button.selected {
  background: rgba(101, 101, 251, 0.25);
  border-color: var(--accent);
  color: var(--text);
}

.slider-shell {
  position: relative;
  padding: 4px 0 2px;
  --thumb-size: 20px;
}

.slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.slider-marker {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 18px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(101, 101, 251, 0.6);
  transform: translateX(-50%);
}

.slider-help {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: -2px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 16px;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus {
  border-color: var(--accent);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--ring), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  caret-color: var(--accent);
}

input[type="range"] {
  -webkit-appearance: none;
  background: transparent;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: var(--thumb-size);
  width: var(--thumb-size);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(101, 101, 251, 0.35);
  border: 2px solid rgba(9, 15, 21, 0.7);
  margin-top: calc(-0.5 * var(--thumb-size) + 3px);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

input[type="range"]::-moz-range-thumb {
  height: var(--thumb-size);
  width: var(--thumb-size);
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(9, 15, 21, 0.7);
  box-shadow: 0 8px 20px rgba(101, 101, 251, 0.35);
}

button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.4px;
}

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

button.ghost:disabled {
  color: rgba(147, 162, 183, 0.5);
  border-color: rgba(255, 255, 255, 0.04);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result {
  margin-top: 12px;
  font-weight: 600;
}

.hidden {
  display: none;
}
