/* ---------- Design tokens (same values as the main site) ---------- */
:root {
  color-scheme: dark;
  --background: oklch(0.1 0.004 25);
  --foreground: oklch(0.97 0.005 25);
  --card: oklch(0.15 0.008 25);
  --primary: oklch(0.5 0.21 25);
  --secondary: oklch(0.21 0.03 25);
  --muted-foreground: oklch(0.72 0.02 25);
  --border: oklch(0.3 0.05 25);
  --radius: 0.9rem;
  --green: #00b67a;
  --brand: #b51218;
  --brand-dark: #d4161d;
  --brand-ink: #ffffff;
  --brand-label: #ff5a60;
  --brand-copy: #d6b8ba;
  --brand-note: #a98b8d;
  --brand-border: #3a1215;
  --brand-surface: #0a0a0a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

[hidden] {
  display: none !important;
}

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

/* ---------- Icons ---------- */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-lg { width: 2rem; height: 2rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-arrow-lg { width: 1.5rem; height: 1.5rem; }
.icon-arrow-md { width: 1.25rem; height: 1.25rem; }
.icon-gift { width: 1rem; height: 1rem; color: #ff5a60; }
.icon-badge { width: 0.625rem; height: 0.625rem; color: #fff; }
.icon-users { width: 0.875rem; height: 0.875rem; color: #ff5a60; }
.icon-star { width: 1rem; height: 1rem; }
.icon-star-green { fill: var(--green); stroke: var(--green); }

.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
.dot-green { background: var(--green); }

/* ---------- Floating notification ---------- */
.notify-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0.75rem 0;
  pointer-events: none;
}

.notify {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #4a1519;
  border-radius: 9999px;
  background: #1a0b0d;
  box-shadow: var(--shadow-lg);
  transition: transform 500ms ease-out, opacity 500ms ease-out;
  transform: translateY(-6rem);
  opacity: 0;
}
.notify.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.notify-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 25%, transparent);
}
.notify-badge {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  background: var(--green);
}
.notify-text {
  min-width: 0;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.375;
}
.notify-title { font-weight: 600; color: var(--foreground); }
.notify-muted { font-weight: 400; color: var(--muted-foreground); }
.notify-reward { font-weight: 600; color: #ff5a60; }
.notify-meta { font-size: 0.75rem; color: var(--muted-foreground); }
.notify-dot { margin-left: 0.25rem; }

/* ---------- Page layout ---------- */
.page {
  min-height: 100vh;
  background: var(--background);
}
.container {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 4rem;
}
.card {
  padding: 0.5rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.98rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.identity-bar {
  width: 2.5rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 4px 6px -1px color-mix(in oklab, var(--primary) 30%, transparent),
    0 2px 4px -2px color-mix(in oklab, var(--primary) 30%, transparent);
}
.identity-label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.divider {
  height: 1px;
  width: 100%;
  margin: 0.25rem 0;
  background: var(--border);
}

.page-title {
  margin-bottom: 0.5rem;
  text-align: center;
  text-wrap: balance;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

/* ---------- Offer panels ---------- */
.panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 2rem;
  background: var(--brand-surface);
  box-shadow: 0 18px 45px rgba(181, 18, 24, 0.18);
}
.panel-question { padding: 1.25rem; }
.panel-result { text-align: center; }

.reward-art {
  position: relative;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(181, 18, 24, 0.35);
}

.reward-photo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border-radius: 1rem;
}


.panel-eyebrow {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-label);
}
.panel-title {
  margin-top: 0.75rem;
  text-align: center;
  text-wrap: balance;
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--brand-ink);
}
.panel-copy {
  max-width: 28rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--brand-copy);
}
.panel-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--brand-note);
  }
  
  .panel-regions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  color: #d6b8ba;
  }
  
  .region-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  }
  
  .region-item img {
  width: 1.25rem;
  height: 0.875rem;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  }
  
  .cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgb(181 18 24 / 0.25), 0 4px 6px -4px rgb(181 18 24 / 0.25);
  transition: background-color 150ms ease;
}
.cta:hover { background: var(--brand-dark); }
.cta:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }

/* ---------- Questions ---------- */
.question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-label);
}
.progress {
  height: 0.375rem;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 9999px;
  background: #2a1517;
}
.progress-bar {
  height: 100%;
  width: 50%;
  border-radius: 9999px;
  background: var(--brand);
  transition: width 300ms ease;
}
.question-title {
  margin-top: 1.5rem;
  text-wrap: balance;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--brand-ink);
}
.options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #161012;
  color: var(--brand-copy);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}
.option:hover { border-color: var(--brand); }
.option:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.option.is-selected {
  border-color: var(--brand);
  background: #2a0d10;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.option-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border: 1px solid #6b3b3f;
  border-radius: 9999px;
  color: #fff;
}
.option-radio .icon { width: 1rem; height: 1rem; display: none; }
.option.is-selected .option-radio {
  border-color: var(--brand);
  background: var(--brand);
}
.option.is-selected .option-radio .icon { display: block; }

/* ---------- Trust signals ---------- */
.trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.viewer-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 auto;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--secondary);
  font-size: 0.75rem;
  line-height: 1rem;
}
.viewer-count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
.viewer-label { color: var(--muted-foreground); }

/* ---------- Rating + reviews ---------- */
.rating-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.rating-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.rating-brand,
.rating-score { font-weight: 700; color: var(--foreground); }
.rating-label { color: var(--muted-foreground); }
.rating-divider {
  width: 1px;
  height: 1rem;
  background: var(--border);
}
.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.star-slot {
  position: relative;
  display: flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.star-slot .icon {
  position: absolute;
  inset: 0;
  width: 1rem;
  height: 1rem;
}
.star-base { fill: #3a3a44; stroke: #3a3a44; }
.star-fill-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 1rem;
  overflow: hidden;
}
.star-fill-wrap .icon { position: static; fill: var(--green); stroke: var(--green); }

.comments { width: 100%; overflow: hidden; }
.comments-track {
  display: flex;
  width: 100%;
  transition: transform 700ms ease-in-out;
}
.comments-page {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  gap: 0.625rem;
}
.comment {
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}
.comment-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--green);
}
.comment-check .icon { width: 0.625rem; height: 0.625rem; color: #fff; }
.comment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--foreground);
}
.comment-stars { display: flex; align-items: center; gap: 0.125rem; }
.comment-stars .icon {
  width: 0.625rem;
  height: 0.625rem;
  fill: var(--green);
  stroke: var(--green);
}
.comment-text {
  font-size: 10px;
  line-height: 1.375;
  color: var(--muted-foreground);
}
.comment-time {
  font-size: 9px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-disclaimer {
  max-width: 24rem;
  margin: 0 auto;
  font-size: 10px;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.footer-disclaimer-title { font-weight: 600; color: var(--foreground); }
.footer-disclaimer p + p { margin-top: 0.25rem; }
.footer-copy,
.footer-links {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.footer-copy { margin-top: 0.75rem; }
.footer-links { margin-top: 0.25rem; }
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { color: var(--foreground); }

/* ---------- Tablet / desktop (>= 640px) ---------- */
@media (min-width: 640px) {
  .notify-wrap { padding: 0.75rem 1rem 0; }
  .notify { gap: 0.75rem; padding: 0.75rem 1.25rem; }
  .notify-text { font-size: 0.875rem; }

  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .card { padding: 2.5rem; }
  .identity-bar { width: 3.5rem; height: 0.75rem; }
  .identity-label { font-size: 0.875rem; line-height: 1.25rem; }
  .divider { margin: 1.5rem 0; }
  .page-title { font-size: 1.875rem; line-height: 2.25rem; }

  .panel { padding: 2.5rem; }
  .panel-question { padding: 2rem; }
  .panel-title { font-size: 2.25rem; line-height: 2.5rem; }
  .question-title { font-size: 1.875rem; line-height: 2.25rem; }

  .trust { gap: 1.5rem; margin-top: 2rem; }
  .viewer-pill { padding: 0.5rem 1rem; font-size: 0.875rem; line-height: 1.25rem; }
  .icon-users { width: 1rem; height: 1rem; }

  .rating-strip { gap: 0.75rem; padding: 1rem; }
  .comments-page { gap: 0.75rem; }
  .comment { padding-left: 1rem; padding-right: 1rem; }
  .comment-name { font-size: 0.875rem; line-height: 1.25rem; }
  .comment-stars .icon { width: 0.75rem; height: 0.75rem; }
  .comment-text { font-size: 0.75rem; line-height: 1rem; }
  .comment-time { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .notify,
  .comments-track,
  .progress-bar,
  .option,
  .cta {
    transition: none;
  }
}
