/* GenZmatch · warm, playful, clean. Mobile first. */
:root {
  --purple: #7B4DFF; --purple-d: #5B2EE0; --purple-l: #EEE7FF;
  --pink: #FF5FA8; --pink-l: #FFE3F0;
  --yellow: #FFD84D; --yellow-d: #E9B800;
  --mint: #38C99A;
  --bg: #FFF8F1; --card: #FFFFFF; --ink: #1E1B2E; --muted: #6B6680; --line: #EDE4DA;
  --shadow: 0 10px 30px -12px rgba(60, 30, 120, .25);
  --r: 22px;
  --font-h: "Outfit", system-ui, sans-serif; --font-b: "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15121F; --card: #211C30; --ink: #F5F1FF; --muted: #ABA3C2; --line: #352E48;
    --purple-l: #2D2450; --pink-l: #3A2236; --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15121F; --card: #211C30; --ink: #F5F1FF; --muted: #ABA3C2; --line: #352E48;
  --purple-l: #2D2450; --pink-l: #3A2236; --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-b); font-size: 16px; line-height: 1.55; padding-bottom: 76px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--purple); }
img, svg { max-width: 100%; }
button { font: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.hide { display: none !important; }
.grad { background: linear-gradient(100deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { padding: 56px 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.logo { font-family: var(--font-h); font-weight: 800; font-size: 1.35rem; text-decoration: none; color: var(--ink); letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.logo b { color: var(--purple); }
.logo i { font-style: normal; font-size: .75rem; color: var(--muted); font-weight: 600; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a.on { background: var(--purple-l); color: var(--purple); }
@media (min-width: 860px) { .nav { display: flex; } }
.spacer { flex: 1; }
.coinpill { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1.5px solid var(--yellow); color: var(--ink); font-weight: 800; font-family: var(--font-h); border-radius: 999px; padding: 5px 12px 5px 6px; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.coinpill .tag { font-size: .7rem; font-weight: 700; color: #B54708; background: #FFF1D6; padding: 1px 6px; border-radius: 999px; }
.coin { width: 22px; height: 22px; flex: none; }
.avatarbtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--purple-l); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; text-decoration: none; position: relative; }
@media (max-width: 420px) { .logo { font-size: 1.15rem; } .logo svg { width: 26px; height: 26px; } .coinpill { padding: 4px 10px 4px 5px; font-size: .88rem; } .coinpill .tag { display: none; } .top .wrap { gap: 8px; } }
.signin-link { font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem; white-space: nowrap; }

/* mobile tab bar */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabs a { text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
.tabs a span { font-size: 1.3rem; line-height: 1; }
.tabs a.on { color: var(--purple); }
@media (min-width: 860px) { .tabs { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; padding: 15px 26px; border-radius: 999px; background: var(--purple); color: #fff; box-shadow: 0 8px 20px -8px var(--purple); transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-1px); background: var(--purple-d); }
.btn:active { transform: translateY(1px); }
.btn.pink { background: var(--pink); box-shadow: 0 8px 20px -8px var(--pink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn.white { background: #fff; color: var(--purple); }
.btn.sm { padding: 10px 18px; font-size: .95rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link { background: none; border: 0; color: var(--purple); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--purple-l); color: var(--purple); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.pill.pink { background: var(--pink-l); color: #C2186C; }
.pill.yellow { background: #FFF1D6; color: #9A5B00; }
.pill.mint { background: #DDF7EE; color: #127A58; }
:root[data-theme="dark"] .pill.pink, :root[data-theme="dark"] .pill.yellow, :root[data-theme="dark"] .pill.mint { filter: brightness(.9); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } .hero { padding: 72px 0; } }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 520px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.ticks span::before { content: "✓ "; color: var(--mint); font-weight: 900; }
.mascots { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; width: 100%; max-width: 480px; margin: 0 auto; }
.mascots .blob { position: absolute; inset: 6% 4%; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: radial-gradient(circle at 30% 30%, var(--pink-l), var(--purple-l)); }
.mascots > div:last-child { position: relative; width: 92%; }
.mascots svg { position: relative; width: 100%; height: auto; display: block; }
.bob { animation: bob 3.2s ease-in-out infinite; }
.bob2 { animation: bob 3.2s ease-in-out -1.6s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .bob, .bob2 { animation: none; } }

/* steps */
.steps { counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { flex: none; width: 40px; height: 40px; border-radius: 14px; background: var(--purple-l); color: var(--purple); font-family: var(--font-h); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }

/* test cards */
.tcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; position: relative; }
.tcard:hover { transform: translateY(-3px); border-color: var(--purple); }
.tcard .em { font-size: 2.1rem; line-height: 1; }
.tcard h3 { margin: 4px 0 0; }
.tcard .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.groupttl { display: flex; align-items: baseline; gap: 4px 12px; margin: 30px 0 14px; flex-wrap: wrap; }
.groupttl h3 { flex: none; }
.groupttl h3 { margin: 0; }

/* ---------- forms & sheets ---------- */
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
input, select { width: 100%; font: inherit; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--purple); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--purple); }
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 12, 40, .55); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } }
.sheet { background: var(--card); color: var(--ink); width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; border-radius: 26px 26px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); position: relative; animation: up .2s; }
@media (min-width: 640px) { .sheet { border-radius: 26px; } }
.sheet .x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--purple-l); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.codebox { letter-spacing: .5em; font-size: 1.4rem; text-align: center; font-weight: 800; font-family: var(--font-h); }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avatars button { aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font-size: 1.4rem; cursor: pointer; }
.avatars button.on { border-color: var(--purple); background: var(--purple-l); }
.err { color: #D92D20; font-size: .9rem; font-weight: 600; margin: 6px 0; min-height: 1em; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 700; z-index: 99; box-shadow: var(--shadow); animation: up .2s; max-width: calc(100vw - 32px); text-align: center; }
@media (min-width: 860px) { .toast { bottom: 28px; } }
.toast.coins { background: var(--yellow); color: #3A2A00; }

/* ---------- test runner ---------- */
.runner { max-width: 620px; margin: 0 auto; padding: 22px 16px 40px; }
.prog { height: 10px; background: var(--purple-l); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--pink)); border-radius: 999px; transition: width .3s; }
.qmeta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); font-weight: 600; }
.qtext { font-family: var(--font-h); font-size: clamp(1.45rem, 5vw, 1.9rem); font-weight: 800; margin: 22px 0 18px; line-height: 1.2; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 16px 18px; border-radius: 18px; font-weight: 600; font-size: 1.02rem; cursor: pointer; transition: border-color .12s, transform .12s, background .12s; display: flex; align-items: center; gap: 12px; }
.opt:hover { border-color: var(--purple); }
.opt.on { border-color: var(--purple); background: var(--purple-l); }
.opt .k { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--purple-l); color: var(--purple); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.opt.on .k { background: var(--purple); color: #fff; }
.qnav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.mascot-mini { width: 64px; height: 64px; }

/* ---------- results ---------- */
.scorering { width: 180px; height: 180px; margin: 0 auto; position: relative; }
.scorering svg { transform: rotate(-90deg); }
.scorering .v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--font-h); }
.scorering .v b { font-size: 3rem; font-weight: 800; line-height: 1; display: block; }
.bars { display: grid; gap: 14px; }
.bar .lbl { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; margin-bottom: 5px; }
.bar .track { height: 12px; background: var(--purple-l); border-radius: 999px; overflow: hidden; }
.bar .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--pink)); width: 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar p { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.typebig { font-size: 4rem; line-height: 1; }
.traits { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.traits li::before { content: "💜 "; }
.reward { background: linear-gradient(120deg, #FFF4CC, #FFE3F0); color: #3A2A00; border-radius: var(--r); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.reward .coin { width: 42px; height: 42px; }
.reward b { font-family: var(--font-h); font-size: 1.15rem; }
.invitebox { display: flex; gap: 8px; }
.invitebox input { font-size: .9rem; }
.note { font-size: .82rem; color: var(--muted); }

/* daily */
.daily-opts { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.daily-opts button { min-height: 120px; border-radius: 22px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-family: var(--font-h); font-weight: 800; font-size: 1.2rem; cursor: pointer; padding: 14px; position: relative; overflow: hidden; }
.daily-opts button:hover { border-color: var(--purple); }
.daily-opts button .fill { position: absolute; left: 0; bottom: 0; right: 0; background: var(--purple-l); transition: height .8s; height: 0; z-index: 0; }
.daily-opts button span { position: relative; z-index: 1; display: block; }
.daily-opts button .pct { font-size: 1.8rem; color: var(--purple); }
.daily-opts button.mine { border-color: var(--purple); }

/* leaderboard */
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.lb li.me { border-color: var(--purple); background: var(--purple-l); }
.lb .rk { width: 30px; font-family: var(--font-h); font-weight: 800; color: var(--muted); text-align: center; }
.lb .av { font-size: 1.5rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); flex: none; }
.lb .nm { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .pts { font-family: var(--font-h); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.frame-heart { box-shadow: 0 0 0 3px var(--pink), 0 0 0 6px var(--pink-l); }
.frame-star { box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px #FFF1D6; }

/* slabs */
.slab { display: flex; flex-direction: column; gap: 10px; }
.slab .price { font-family: var(--font-h); font-size: 2.2rem; font-weight: 800; }
.slab ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: .95rem; }
.slab ul li::before { content: "✓ "; color: var(--mint); font-weight: 900; }
.slab.hot { border: 2px solid var(--purple); }
.slab .btn { margin-top: auto; }

/* shop */
.item { display: flex; flex-direction: column; gap: 6px; }
.item .em { font-size: 2.2rem; }
.item .cost { display: flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 800; }

/* my vibe */
.profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bigav { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: var(--purple-l); flex: none; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.ledger li b.plus { color: #127A58; }
.ledger li b.minus { color: #C2186C; }
.rlist { display: grid; gap: 10px; }
.rrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--bg); }
.rrow .em { font-size: 1.6rem; }
.rrow .sc { margin-left: auto; font-family: var(--font-h); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 28px; margin-top: 40px; font-size: .9rem; }
footer .cols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer h4 { font-size: .95rem; margin-bottom: 8px; }
footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--purple); }
.trustline { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 36px 16px; }
.legal h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }

.cta-band { background: linear-gradient(120deg, var(--purple), var(--pink)); color: #fff; border-radius: 28px; padding: 36px 24px; text-align: center; }
.cta-band h2 { color: #fff; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.spin { width: 28px; height: 28px; border: 3px solid var(--purple-l); border-top-color: var(--purple); border-radius: 50%; animation: sp 0.8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
