@font-face {
  font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("/assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --purple: #7a12c9;
  --pink: #e0338a;
  --red: #d93a3a;
  --gray: #6e6478;
  --ink: #2a0b33;
  --ink-soft: rgba(42, 11, 51, .7);
  --bg: #f3e9fb;
  --surface: #fff;
  --dot: rgba(122, 18, 201, .07);
  --shadow: 0 14px 36px rgba(122, 18, 201, .14);
  --gold: linear-gradient(135deg, #f5c542, #e08a1e);
  --grad: linear-gradient(135deg, var(--purple), var(--pink));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --purple: #ab66f2;
    --pink: #ff5aa8;
    --ink: #f6edfb;
    --ink-soft: rgba(246, 237, 251, .72);
    --bg: #140819;
    --surface: #24112d;
    --dot: rgba(164, 91, 240, .09);
    --shadow: 0 14px 36px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 5px, transparent 5.5px), radial-gradient(var(--dot) 5px, transparent 5.5px);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top: Teyze hanging from the curtain */
.hang { display: flex; justify-content: center; margin-top: -54px; pointer-events: none; }
.hang img { width: min(560px, 92vw); animation: peek 1.2s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes peek { from { transform: translateY(-70%); } to { transform: none; } }

.topbar { position: absolute; top: 12px; right: 16px; display: flex; gap: 8px; z-index: 2; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(12px);
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 14px; box-shadow: var(--shadow);
}

/* Hero */
.hero { display: grid; gap: 24px; align-items: center; padding: 8px 0 40px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin: 0; }
.hero h1 img { width: min(460px, 100%); }
.tagline { display: block; font-size: clamp(24px, 4.4vw, 36px); font-weight: 900; line-height: 1.15; margin-top: 10px; }
.lede { font-size: 18px; color: var(--ink-soft); font-weight: 600; max-width: 34em; }
/* Teyze pops out of a polka-dot box; her cut-off edge sits on the box's bottom edge. */
.teyze-box {
  justify-self: center; position: relative; width: min(400px, 88%); aspect-ratio: 1 / .66; margin-top: 110px;
  border-radius: 40px; border: 6px solid #fff; transform: rotate(-3deg);
  background-color: #7a12c9;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 7px, transparent 7.5px), radial-gradient(rgba(255, 255, 255, .22) 7px, transparent 7.5px), linear-gradient(150deg, #9b2cf0, #e0338a);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-position: 0 0, 20px 20px, 0 0;
  box-shadow: 0 24px 50px rgba(122, 18, 201, .35);
}
.teyze-box img {
  position: absolute; left: 4%; right: 4%; bottom: 0; width: 92%;
  /* Clip only the bottom (rounded); let her head pop out of the top. */
  clip-path: inset(-200px 0 0 0 round 0 0 34px 34px);
  transform-origin: bottom center; animation: bob 3.2s ease-in-out infinite;
}
.teyze-box .pill { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%) rotate(3deg); font-size: 16px; padding: 6px 16px; border-width: 3px; }
@keyframes bob { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none;
}
.store small { display: block; font-size: 11px; opacity: .7; font-weight: 700; line-height: 1; }
.store span { line-height: 1.15; }
.store svg { width: 22px; height: 22px; fill: currentColor; }

/* Sections */
section { padding: 36px 0; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.15; margin: 0 0 8px; }
.kicker { color: var(--purple); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.sub { color: var(--ink-soft); font-weight: 600; margin: 0 0 22px; max-width: 40em; }
.card { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 20px; }

/* Demo */
.demo { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .demo { grid-template-columns: 1fr 1fr; } }
.q-card { max-width: 460px; width: 100%; justify-self: center; position: relative; }
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #6fa8ff, #8b3fe0); color: #fff; display: grid; place-items: center; font-weight: 900; }
.q-head b { display: block; }
.q-head small { color: var(--ink-soft); font-weight: 700; }
.timer { margin-left: auto; color: var(--pink); background: color-mix(in srgb, var(--pink) 12%, transparent); padding: 6px 10px; border-radius: 999px; font-weight: 900; font-size: 13px; font-variant-numeric: tabular-nums; }
.q-visual { aspect-ratio: 1; border-radius: 20px; background: linear-gradient(135deg, #ff8fc7, #b25cff); display: grid; place-items: center; font-size: 120px; position: relative; overflow: hidden; }
.q-text { font-size: 21px; font-weight: 900; margin: 14px 0 12px; }
.options { display: grid; gap: 10px; }
.opt {
  position: relative; overflow: hidden; border: 0; border-radius: 999px; height: 50px; padding: 0 18px;
  font: inherit; font-weight: 800; font-size: 17px; color: var(--ink); cursor: pointer; text-align: center;
  background: color-mix(in srgb, var(--purple) 10%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--purple) 28%, transparent);
  transition: transform .15s, background .2s;
}
.opt:hover { transform: scale(1.02); background: color-mix(in srgb, var(--purple) 16%, var(--surface)); }
.opt:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.opt .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: color-mix(in srgb, var(--purple) 18%, transparent); transition: width .9s cubic-bezier(.2, 1.3, .4, 1); }
.opt.lead .fill { background: linear-gradient(90deg, color-mix(in srgb, var(--purple) 40%, transparent), color-mix(in srgb, var(--pink) 40%, transparent)); }
.opt .row { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; }
.voted .opt .row { justify-content: space-between; }
.opt .pct { opacity: 0; transition: opacity .4s; font-variant-numeric: tabular-nums; }
.voted .opt { cursor: default; text-align: left; }
.voted .opt:hover { transform: none; }
.voted .opt .pct { opacity: 1; }
.opt.mine { border: 2px solid var(--purple); }
.verdict { position: absolute; right: 22px; bottom: 26px; width: 140px; display: flex; flex-direction: column; align-items: center; transform: scale(0) rotate(-20deg); transform-origin: bottom right; transition: transform .6s cubic-bezier(.2, 1.6, .4, 1); }
.voted .verdict { transform: scale(1) rotate(-6deg); }
.pill { display: inline-block; color: #fff; font-weight: 900; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 2px solid #fff; background: var(--grad); margin-top: -10px; position: relative; white-space: nowrap; }
.verdict .pill { align-self: flex-end; font-size: 12px; max-width: calc(100vw - 80px); }
.agree { margin: 12px 0 0; font-weight: 700; color: var(--ink-soft); min-height: 1.5em; }

/* Sticker: face fades into a label pill that hides the cut edge */
.sticker { display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.sticker img { -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); }
.sticker .pill { margin-top: -22px; font-size: 14px; padding: 5px 14px; border-width: 3px; box-shadow: 0 6px 14px rgba(42, 11, 51, .2); }
.verdict img { -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); }

/* Steps */
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; }
.step .sticker { width: 170px; margin-bottom: 14px; }
.step h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.step p { margin: 0; color: var(--ink-soft); font-weight: 600; }

/* Ranks */
.ranks { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; max-width: 620px; }
.ranks li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.ranks .pts { margin-left: auto; font-weight: 900; color: var(--purple); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranks b { display: block; font-size: 17px; }
.ranks small { color: var(--ink-soft); font-weight: 600; }
.ranks .locked { opacity: .6; }
.ranks .legend { background: var(--gold); color: #3b2200; opacity: 1; }
.ranks .legend .pts, .ranks .legend small { color: #3b2200; }
.ranks .ico { font-size: 26px; width: 34px; text-align: center; }

/* Meaning + FAQ */
.meaning { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .meaning { grid-template-columns: 1fr 240px; } }
.meaning .sticker { width: 220px; }
.meaning p { margin: 0 0 12px; font-weight: 600; color: var(--ink-soft); }
.meaning p strong { color: var(--ink); }
details { padding: 0; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 900; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--purple); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); font-weight: 600; }

/* Footer */
footer { padding: 40px 0 60px; text-align: center; color: var(--ink-soft); font-weight: 700; }
.socials { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.ig { background: linear-gradient(45deg, #feda75, #d62976, #4f5bd5); }
.xx { background: #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.meaning p.kicker { color: var(--purple); margin: 0; }

/* Legal pages */
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.legal-head img { width: 180px; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vw, 40px); }
.legal h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 6px; }
.legal .updated { color: var(--ink-soft); font-weight: 700; margin: 0 0 20px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-weight: 600; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
footer a { color: inherit; }
