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

/* Colors, font and header match the landing page (digitalcharm-landing globals.css). */
:root {
  --ink: #050505;
  --paper: #f5f5f7;
  --device: #050505;
  --screen: #111111;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.36);
  --surface: #111111;
  --border: rgba(255, 255, 255, 0.06);
  --accent: #8000ff;
  --accent-ink: #f5f5f7;
  --radar: #8000ff;
  --radius: 16px;
  --nav-h: 64px;
  --font: "Inter", -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
  --emotion-happy: #e65100;
  --emotion-surprised: #00897b;
  --emotion-bad: #4a148c;
  --emotion-fearful: #c2185b;
  --emotion-angry: #c62828;
  --emotion-disgusted: #6d4c41;
  --emotion-sad: #283593;
  --progress-1: hsl(4 92% 58%);
  --progress-2: hsl(28 96% 54%);
  --progress-3: hsl(52 98% 50%);
  --progress-4: hsl(88 84% 46%);
  --progress-5: hsl(132 76% 46%);
  --progress-6: hsl(164 82% 46%);
  --progress-7: hsl(188 94% 50%);
  --progress-8: hsl(210 96% 58%);
  --progress-9: hsl(232 92% 64%);
  --progress-10: hsl(258 90% 66%);
  --progress-11: hsl(282 88% 64%);
  --progress-12: hsl(308 90% 62%);
  --progress-13: hsl(332 92% 58%);
  --progress-14: hsl(352 94% 56%);
  --progress-15: hsl(18 96% 54%);
  --progress-16: hsl(42 96% 52%);
  --progress-17: hsl(70 90% 48%);
  --progress-18: hsl(150 80% 46%);
  --progress-19: hsl(200 94% 54%);
  --progress-20: hsl(270 90% 64%);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Landing's ambient glow (.ambient-bg) without extra markup. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

body::before {
  top: -40vh;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(128, 0, 255, 0.08) 0%, transparent 70%);
}

body::after {
  bottom: -20vh;
  right: -10vw;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.05) 0%, transparent 70%);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--progress-1);
  transition: width 0.45s ease, background-color 0.7s ease;
}

.screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(640px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1080px;
  height: var(--nav-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.langs {
  display: flex;
  gap: 2px;
}

.langs button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.langs button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.langs button[aria-pressed="true"] {
  color: var(--paper);
}

.share-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, calc(100% - 40px));
  margin: 32px auto 0;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
  overflow: hidden;
}

.share-card .retro {
  width: 72px;
}

.share-card .retro-aura {
  box-shadow:
    0 0 6px 1px var(--aura),
    0 0 12px 4px var(--aura);
  opacity: 0.5;
  animation: none;
}

.share-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.share-card-result {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.share-card-cta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 28px 24px 56px;
}

.intro h1 {
  max-width: 14em;
  margin: 8px 0 0;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.lead,
.meta,
.desc {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 28em;
  font-size: 16px;
  line-height: 1.5;
}

.meta {
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  min-width: 180px;
}

.btn-primary:hover {
  background: #9326ff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-whatsapp,
.btn-x {
  gap: 8px;
  border-color: transparent;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1ebe5a;
}

.btn-x {
  background: #fff;
  color: #000;
}

.btn-x:hover {
  background: #e8e8e8;
}

.share-mark {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-text {
  background: none;
  border: 0;
  color: var(--muted);
  min-height: 44px;
  padding: 0 8px;
}

.quiz {
  padding: 28px 20px 64px;
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.back,
.next {
  background: none;
  border: 0;
  color: var(--paper);
  font-size: 15px;
  font-weight: 650;
  padding: 8px 0;
}

.back {
  color: var(--muted);
}

.next:disabled {
  opacity: 0.35;
  cursor: default;
}

.next.is-finish {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 14px;
  min-height: 44px;
  padding: 0 20px;
}

.next.is-finish:hover {
  background: #9326ff;
}

.quiz h1 {
  margin: 12px 0 22px;
  font-size: clamp(24px, 4.4vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  font-weight: 600;
  animation: rise 0.35s ease;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.option.is-selected {
  border-color: var(--accent);
  background: rgba(128, 0, 255, 0.14);
}

.option .key {
  flex: none;
  width: 1.25rem;
  padding-top: 1px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.option.is-selected .key {
  color: var(--accent);
}

.option .label {
  flex: 1;
  font-size: 16px;
  line-height: 1.45;
}

.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 12px 20px 72px;
}

.copy,
.panel,
.disclaimer,
.get-app {
  width: min(560px, 100%);
}

.result-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(560px, 100%);
}

.name-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 10px;
  color: var(--paper);
  transition: background 0.16s ease;
}

.name-field:hover,
.name-field:focus-within {
  background: rgba(255, 255, 255, 0.12);
}

.name-grow {
  display: inline-grid;
  justify-items: center;
  max-width: 100%;
}

.name-sizer,
.name-field input {
  grid-area: 1 / 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.name-edit {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}

.name-sizer {
  visibility: hidden;
  white-space: pre;
  padding: 0 4px;
  max-width: 100%;
}

.name-field input {
  width: 0;
  min-width: 100%;
  text-align: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 2px 4px 6px;
  outline: none;
}

.name-field input::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.name-field input:focus::placeholder {
  opacity: 0;
  color: transparent;
}

.name-field:hover input,
.name-field input:focus {
  border-bottom-color: var(--paper);
  border-bottom-width: 2px;
}

.name-field:hover .name-edit,
.name-field:focus-within .name-edit {
  color: var(--accent);
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.result-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.result-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.result-percent,
.copy h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.desc {
  font-size: 16px;
  line-height: 1.55;
}

.same-feeling {
  margin: 8px auto 0;
  max-width: 26em;
  color: var(--paper);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.same-feeling-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.disclaimer {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.disclaimer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel h2,
.get-app h2 {
  margin: 0;
  font-size: 15px;
}

.get-app h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.preview-wrap {
  position: relative;
}

.spread-stage {
  position: relative;
}

.preview.is-locked {
  filter: blur(9px);
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
}

.preview-wrap > .preview.is-locked {
  filter: blur(3px);
  opacity: 0.95;
}

.spread-stage:has(.gate-overlay) {
  display: grid;
}

.spread-stage:has(.gate-overlay) > .preview,
.spread-stage:has(.gate-overlay) > .gate-overlay {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
}

.gate-overlay {
  position: relative;
  z-index: 2;
  width: min(420px, 92%);
  margin-block: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 12, 9, 0.92);
  pointer-events: auto;
}

@media (max-width: 720px) {
  .result .get-app {
    margin-top: 28px;
  }
}

.lock-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.radar svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar .ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.radar .web {
  fill: rgba(128, 0, 255, 0.28);
  stroke: rgba(128, 0, 255, 0.92);
  stroke-width: 2;
  stroke-linejoin: round;
}

.radar .axis {
  fill: var(--paper);
  font-weight: 700;
  font-family: var(--font);
}

.spread {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spread-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 8px 8px;
  color: var(--paper);
}

button.spread-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.spread li.is-open .spread-row {
  background: rgba(128, 0, 255, 0.14);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.spread-name {
  flex: none;
  font-size: 14px;
  font-weight: 650;
}

.spread-leader {
  flex: 1;
  height: 4px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.42) 1.15px, transparent 1.25px);
  background-size: 8px 4px;
  background-repeat: repeat-x;
  background-position: left center;
}

.spread-pct {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.spread-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.spread li.is-open .spread-chevron {
  transform: rotate(180deg);
}

.causes {
  margin: 0 8px 10px 28px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid rgba(128, 0, 255, 0.55);
}

.causes-kicker,
.causes-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.causes ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cause-q {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cause-n {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cause-a {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.gate {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lock-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.field-error {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.field-error {
  color: #ffb4b4;
}

.email,
.email label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email span {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.email input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}

.email input:focus {
  border-color: var(--accent);
}

.email label.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.email .consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.email .consent input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.12s ease;
}

.email .consent input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.email .consent input:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.email .consent span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.email .consent a {
  color: var(--paper);
  text-decoration: underline;
}

.email .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gate-skip {
  align-self: center;
  min-height: 32px;
  padding: 0 8px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.gate-skip:hover {
  color: var(--paper);
}

.gate-overlay .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.gate-overlay .btn {
  align-self: stretch;
  width: 100%;
}

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

.actions .btn {
  flex: 1 1 auto;
  white-space: nowrap;
}

.actions .btn-primary {
  min-width: 0;
}

.get-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(128, 0, 255, 0.4);
  background: rgba(128, 0, 255, 0.1);
}

.get-app-head {
  display: contents;
}

.get-app-head > div {
  min-width: 0;
}

.get-app .brand-logo {
  flex: none;
}

.get-app .brand-logo span {
  display: none;
}

.get-app .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.get-app p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.stores {
  grid-column: 2;
  container-type: inline-size;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.store {
  flex: 1 1 0;
  max-width: 168px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 12px 7px 10px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.store:hover {
  border-color: rgba(255, 255, 255, 0.42);
}

.store-mark {
  width: 20px;
  height: 24px;
  display: block;
  flex: none;
}

.store > span {
  min-width: 0;
  overflow: hidden;
}

.store small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 500;
  opacity: 0.88;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.store strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@container (max-width: 300px) {
  .store {
    gap: 5px;
    padding: 6px 7px 6px 6px;
  }

  .store-mark {
    width: 16px;
    height: 18px;
  }

  .store small {
    font-size: 8.5px;
    letter-spacing: 0;
  }

  .store strong {
    font-size: 12.5px;
    letter-spacing: -0.03em;
  }
}

.retro {
  position: relative;
  width: 220px;
  aspect-ratio: 135 / 155;
  flex: none;
}

.retro-aura {
  position: absolute;
  z-index: 0;
  inset: 7%;
  border-radius: 22%;
  box-shadow:
    0 0 10px 3px var(--aura),
    0 0 22px 8px var(--aura),
    0 0 46px 16px var(--aura),
    0 0 78px 22px var(--aura);
  opacity: 0.5;
  animation: auraPulse 3.8s ease-in-out infinite;
  pointer-events: none;
}

.retro-body {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 18%;
  background: var(--device);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.retro:not(.is-rainbow) .retro-body {
  background: var(--aura);
}

.retro-screen {
  position: absolute;
  inset: 4.2%;
  border-radius: 15%;
  overflow: hidden;
  background: var(--screen);
}

.retro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%);
  pointer-events: none;
}

.retro-screen img,
.retro-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.load-error {
  padding: 48px 24px;
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.72;
  }
}

@property --aura-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@keyframes auraHue {
  to {
    --aura-angle: 360deg;
  }
}

.retro.is-rainbow {
  --aura-angle: 0deg;
  --rainbow: conic-gradient(
    from var(--aura-angle),
    #ff004d 0%,
    #ff7f00 14%,
    #ffff00 28%,
    #00ff00 42%,
    #00d9ff 57%,
    #0000ff 71%,
    #9d00ff 85%,
    #ff004d 100%
  );
  animation: auraHue 2s linear infinite;
}

.retro-wash {
  position: absolute;
  z-index: 0;
  inset: -16%;
  border-radius: 28%;
  background: var(--rainbow);
  filter: blur(34px);
  opacity: 0.22;
  pointer-events: none;
}

.retro-ring,
.retro.is-rainbow .retro-aura {
  position: absolute;
  border-radius: 18%;
  background: var(--rainbow);
  pointer-events: none;
  padding: 7px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.retro-ring {
  z-index: 2;
  inset: 0;
}

/* The screen fills the ring's opening exactly: same 7px edge, inner curve of the
   ring's 18% corner. The default 4.2% bezel leaves a dark gap inside the ring. */
.retro.is-rainbow .retro-screen {
  inset: 7px;
  border-radius: calc(220px * 0.18 - 7px) / calc(220px * 155 / 135 * 0.18 - 7px);
}

.retro.is-rainbow .retro-aura {
  z-index: 0;
  inset: -1%;
  box-shadow: none;
  filter: blur(16px);
  opacity: 0.4;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill,
  .option,
  .quiz h1,
  .retro-aura,
  .retro.is-rainbow {
    animation: none;
    transition: none;
  }
}

