:root {
  --bg: #fffdf5;
  --fg: #1e293b;
  --muted: #f5f7fa;
  --muted-fg: #64748b;
  --accent: #8b5cf6;
  --accent-fg: #ffffff;
  --secondary: #f472b6;
  --tertiary: #fbbf24;
  --quaternary: #34d399;
  --border: #e2e8f0;
  --card: #ffffff;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --bw: 1.5px;
  --pop: 3px 3px 0 0 var(--fg);
  --pop-hover: 5px 5px 0 0 var(--fg);
  --pop-press: 1px 1px 0 0 var(--fg);

  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(circle, #d8dee8 1px, transparent 1.2px);
  background-size: 26px 26px;
  color: var(--fg);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(1.9rem, 3.2vw + 1rem, 2.8rem);
}
h2 {
  font-size: clamp(1.35rem, 1.6vw + 1rem, 1.8rem);
}
h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 12px;
}

.lede {
  font-size: 0.98rem;
  color: var(--muted-fg);
  max-width: 56ch;
}

.hl {
  position: relative;
  display: inline-block;
  color: var(--accent);
}
.hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.08em;
  height: 0.14em;
  background: var(--tertiary);
  z-index: -1;
  border-radius: 999px;
}

/* ============ LAYOUT ============ */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 16px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.logo {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.logo-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--fg);
  display: inline-block;
}

.upload {
  cursor: pointer;
}
.upload span {
  display: inline-block;
  padding: 6px 14px;
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s var(--ease-bounce);
}
.upload:hover span {
  background: var(--tertiary);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--fg);
}

/* ============ CARDS / SCREENS ============ */
.card {
  background: var(--card);
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-lg);
  padding: 32px clamp(20px, 4vw, 36px);
  box-shadow: var(--pop);
  position: relative;
}

.screen.hidden {
  display: none;
}

.screen {
  animation: pop-in 0.35s var(--ease-bounce);
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============ BADGES & META ============ */
.badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--fg);
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  box-shadow: 2px 2px 0 var(--fg);
}
.badge.tertiary {
  background: var(--tertiary);
}
.badge.quaternary {
  background: var(--quaternary);
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.meta .chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border: var(--bw) solid var(--fg);
  border-radius: 10px;
  background: var(--muted);
}
.meta .chip strong {
  color: var(--accent);
  font-weight: 700;
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px 10px 20px;
  background: var(--accent);
  color: var(--accent-fg);
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--pop);
  transition: all 0.2s var(--ease-bounce);
}
.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--pop-hover);
}
.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: var(--pop-press);
}
.btn-primary .arrow {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
  border-radius: 999px;
  border: var(--bw) solid var(--fg);
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.8rem;
  margin-top: 20px;
  cursor: pointer;
  color: var(--fg);
  transition: all 0.2s var(--ease-bounce);
}
.btn-ghost:hover {
  background: var(--tertiary);
}

/* ============ QUESTION SCREEN ============ */
.progress {
  margin-bottom: 22px;
}
.progress span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
}
.progress-bar {
  margin-top: 6px;
  background: var(--muted);
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transition: width 0.45s var(--ease-bounce);
}

.qlabel {
  display: inline-block;
  background: var(--quaternary);
  border: var(--bw) solid var(--fg);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 9px;
  margin-bottom: 10px;
  box-shadow: 2px 2px 0 var(--fg);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.choice {
  --chip-color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  background: var(--card);
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--fg);
  transition: all 0.2s var(--ease-bounce);
}
.choice:hover {
  background: var(--chip-color);
  color: var(--card);
  transform: translate(-2px, -2px) rotate(-0.6deg);
  box-shadow: 5px 5px 0 var(--fg);
}
.choice:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--fg);
}
.choice-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--chip-color);
  color: var(--card);
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
}
.choice:hover .choice-num {
  background: var(--card);
  color: var(--fg);
}
.choice-label {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.choice.categorical {
  padding-left: 18px;
}
.choice.categorical::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--chip-color);
  border: var(--bw) solid var(--fg);
  margin-right: 2px;
}
.choice.categorical.other {
  border-style: dashed;
  color: var(--muted-fg);
  box-shadow: none;
}
.choice.categorical.other::before {
  background: transparent;
  border-style: dashed;
}
.choice.categorical.other:hover {
  background: var(--muted);
  color: var(--fg);
  border-style: solid;
  box-shadow: 3px 3px 0 var(--fg);
}

.btn-idk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 8px 16px;
  background: transparent;
  border: 1.5px dashed var(--muted-fg);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--muted-fg);
  cursor: pointer;
  transition: all 0.2s var(--ease-bounce);
}
.btn-idk:hover {
  border-style: solid;
  color: var(--fg);
  border-color: var(--fg);
  background: var(--muted);
}
.btn-idk .idk-glyph {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
}

/* ============ RESULT ============ */
.winner-name {
  position: relative;
  display: inline-block;
  color: var(--accent);
}
.winner-name::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.08em;
  height: 0.14em;
  background: var(--tertiary);
  z-index: -1;
  border-radius: 999px;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.88rem;
}

.bar-label {
  font-weight: 600;
  color: var(--fg);
}

.bar-value {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.bar.winner .bar-label,
.bar.winner .bar-value {
  color: var(--fg);
}
.bar.winner .bar-value {
  color: var(--accent);
}

.bar-track {
  background: var(--muted);
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-right: var(--bw) solid var(--fg);
  border-radius: 999px 0 0 999px;
  transition: width 0.9s var(--ease-bounce);
}

.bar.winner .bar-track {
  box-shadow: 2px 2px 0 var(--fg);
}

.path-title {
  margin-top: 4px;
}

.path {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: step;
}
.path li {
  position: relative;
  padding: 9px 14px 9px 40px;
  background: var(--muted);
  border: var(--bw) solid var(--fg);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  counter-increment: step;
}
.path li::before {
  content: counter(step);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-family: "Outfit";
  font-weight: 700;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--fg);
}
.path li.yes::before {
  background: var(--quaternary);
}
.path li.no::before {
  background: var(--secondary);
}
.path li.unknown {
  background: repeating-linear-gradient(
    -45deg,
    var(--muted),
    var(--muted) 8px,
    #ecf0f5 8px,
    #ecf0f5 16px
  );
  color: var(--muted-fg);
}
.path li.unknown::before {
  content: "?";
  background: var(--card);
  color: var(--muted-fg);
}
.path-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px dashed var(--muted-fg);
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
}

.uncertainty {
  margin: 12px 0 20px;
  padding: 10px 14px;
  background: #fef9e7;
  border: 1.5px solid var(--fg);
  border-radius: 12px;
  font-size: 0.86rem;
  box-shadow: 2px 2px 0 var(--fg);
}
.uncertainty.hidden {
  display: none;
}
.uncertainty strong {
  font-weight: 700;
  color: var(--accent);
}
.path li b {
  font-weight: 700;
}

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

/* ============ CONFETTI ============ */
.confetti {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.c1 {
  width: 140px;
  height: 140px;
  top: -40px;
  right: -40px;
  animation: spin 28s linear infinite;
}
.c2 {
  width: 70px;
  height: 70px;
  bottom: 60px;
  left: -20px;
  animation: float 7s var(--ease-bounce) infinite alternate;
}
.c3 {
  width: 56px;
  height: 56px;
  top: 45%;
  right: -12px;
  animation: float 9s var(--ease-bounce) infinite alternate;
}
.c4 {
  width: 150px;
  height: 50px;
  bottom: 12%;
  right: 10%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes float {
  to {
    transform: translateY(-14px) rotate(6deg);
  }
}

/* ============ FOOTER ============ */
.foot {
  text-align: center;
  padding: 20px 16px 32px;
  color: var(--muted-fg);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ============ TOPBAR ACTIONS ============ */
.topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.upload {
  text-decoration: none;
  color: inherit;
}

/* ============ FEATURE / OPTION DESCRIPTIONS ============ */
.feature-description {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: #f5f3ff;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  color: var(--fg);
  font-size: 0.9rem;
  box-shadow: 2px 2px 0 var(--fg);
}
.feature-description.hidden {
  display: none;
}

.choice.rich {
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  max-width: 240px;
  white-space: normal;
  text-align: left;
}
.choice-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.choice.rich .choice-image {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  margin-top: 8px;
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-sm);
}
.choice-description {
  display: block;
  margin-top: 8px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted-fg);
  line-height: 1.4;
}
.choice.rich:hover .choice-description {
  color: var(--card);
}

.choices.has-rich {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 8px;
  align-items: start;
}
.choices.has-rich .choice {
  width: 100%;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  white-space: normal;
  text-align: left;
}
.choices.has-rich .choice.rich {
  max-width: none;
}
.choices.has-rich .choice.categorical {
  padding-left: 14px;
}
.choices.has-rich .choice.categorical::before {
  content: none;
}
.choices.has-rich .choice.categorical .choice-top::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--chip-color);
  border: var(--bw) solid var(--fg);
}
.choices.has-rich .choice.categorical.other .choice-top::before {
  background: transparent;
  border-style: dashed;
}
.choices.has-rich .choice-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
}

/* ============ OUTCOME DETAIL ============ */
.outcome-detail {
  margin: 8px 0 22px;
  padding: 14px;
  background: #ecfdf5;
  border: 1.5px solid var(--quaternary);
  border-radius: var(--r-md);
  box-shadow: 2px 2px 0 var(--fg);
}
.outcome-detail.hidden {
  display: none;
}
.outcome-image {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
}
.outcome-description {
  margin: 0;
  font-size: 0.92rem;
}

/* ============ EDITOR ============ */
.editor-container {
  max-width: 880px;
}
.editor-intro {
  margin-bottom: 20px;
}
.editor-status {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted-fg);
}
.editor-status[data-tone="warn"] {
  color: #b45309;
}
.editor-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.ed-card {
  padding: 20px clamp(16px, 3vw, 28px);
}
.ed-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ed-card-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.ed-feature-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px 14px;
  margin-bottom: 18px;
}
.ed-section-h {
  margin: 6px 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
}
.ed-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-option {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--bg);
}
.ed-option-head {
  margin-bottom: 8px;
}
.ed-option-tag {
  display: inline-block;
  padding: 3px 10px;
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  background: var(--tertiary);
  font-weight: 700;
  font-size: 0.78rem;
}
.ed-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 10px 14px;
  align-items: start;
}
.ed-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted-fg);
  font-weight: 600;
}
.ed-field-wide {
  grid-column: span 2;
}
.ed-field-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ed-field input,
.ed-field textarea {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  resize: vertical;
}
.ed-field input:focus,
.ed-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ede9fe;
}
.ed-field textarea {
  min-height: 56px;
}
.ed-option-preview {
  grid-row: span 2;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--muted);
}
.ed-option-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: cover;
}
.ed-option-preview.ed-broken {
  border-color: #fca5a5;
  background: #fee2e2;
}
.download-btn {
  font-size: 0.82rem;
  padding: 8px 14px 8px 18px;
}
.ed-orphans .lede {
  margin-top: 6px;
}
.ed-orphan-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--muted-fg);
}

@media (max-width: 720px) {
  .ed-feature-grid {
    grid-template-columns: 1fr;
  }
  .ed-option-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ed-option-preview {
    grid-row: auto;
    grid-column: span 2;
    min-height: 80px;
  }
}

/* ============ HELP & INFO POPOVERS ============ */
.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  background: var(--card);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.2s var(--ease-bounce);
}
.help-btn:hover {
  background: var(--accent);
  color: var(--accent-fg);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--fg);
}
.help-glyph {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
}

.qlabel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.qlabel-row .qlabel {
  margin-bottom: 0;
}

.info-btn {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-family: "Outfit", system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
  box-shadow: 1px 1px 0 var(--fg);
  transition: all 0.2s var(--ease-bounce);
}
h2 .info-btn,
h3 .info-btn {
  position: relative;
  top: -0.15em;
}
.info-btn:hover {
  background: var(--tertiary);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--fg);
}

.info-pop {
  max-width: min(420px, calc(100vw - 32px));
  padding: 24px 24px 20px;
  border: var(--bw) solid var(--fg);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--pop-hover);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}
.info-pop:popover-open {
  animation: pop-in 0.25s var(--ease-bounce);
}
.info-pop::backdrop {
  background: rgba(30, 41, 59, 0.32);
}
.info-pop h3 {
  font-size: 1.25rem;
  margin: 0 36px 10px 0;
}
.info-pop h4 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.96rem;
  margin: 16px 0 4px;
}
.info-pop h4:first-of-type {
  margin-top: 8px;
}
.info-pop p {
  margin: 0 0 8px;
  color: var(--fg);
}
.info-pop em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.info-pop .info-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--border);
  font-size: 0.8rem;
  color: var(--muted-fg);
}
.info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--fg);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 1px 1px 0 var(--fg);
  transition: all 0.2s var(--ease-bounce);
}
.info-close:hover {
  background: var(--secondary);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--fg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .card {
    padding: 24px 18px;
    box-shadow: 2px 2px 0 var(--fg);
  }
  .answers {
    grid-template-columns: 1fr;
  }
  .confetti.c3,
  .confetti.c4 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
