/* Ғашық сана — веб-клиент стилі.
   Layout: мобильде бір баған + төменгі навигация; 900px-тен кең экранда навигация жоғарыға шығады. */

:root {
  --bg: #f3f1fb; --surface: #ffffff; --ink: #1b1840; --muted: #5d5a7e; --line: #dcd8ee;
  --lapis: #2c2a8c; --saffron: #e9a21b; --rose: #d1456b; --chip: #ebe8f8; --ok: #1f8a5b;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12112a; --surface: #1c1a3d; --ink: #efedff; --muted: #a9a6cc; --line: #2f2c5a;
    --lapis: #9c98ff; --saffron: #f3b640; --rose: #ff7d9c; --chip: #272457; --ok: #4fd197; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12112a; --surface: #1c1a3d; --ink: #efedff; --muted: #a9a6cc; --line: #2f2c5a;
  --lapis: #9c98ff; --saffron: #f3b640; --rose: #ff7d9c; --chip: #272457; --ok: #4fd197; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.15; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--lapis); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, textarea:focus { border-color: var(--lapis); outline: none; }

.boot { height: 100dvh; display: grid; place-items: center; }
.boot-mark { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--chip); border-top-color: var(--saffron); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: calc(var(--safe-t) + 10px) 16px 10px; border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 18px var(--display); letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.topbar .spacer { flex: 1; }
.topbar #sndBtn { margin-left: auto; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn[aria-pressed="false"] { color: var(--muted); }
.iconbtn[aria-pressed="true"] .x, .iconbtn[aria-pressed="false"] .w { display: none; }
main.page { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px 16px calc(var(--nav-h) + var(--safe-b) + 24px); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + var(--safe-b)); display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 12px; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--lapis); background: var(--chip); }
.tabbar .dot { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 11px; display: grid; place-items: center; }
@media (min-width: 900px) {
  .tabbar { position: static; border: 0; background: none; padding: 0; display: flex; gap: 4px; }
  .tabbar a { flex-direction: row; gap: 8px; font-size: 14px; padding: 9px 14px; }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar .dot { position: static; }
  main.page { padding-bottom: 40px; }
  .topbar .tabbar { flex: 1; justify-content: center; }
}

/* ---------- common ---------- */
.btn { border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 700; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.alt { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.accent { background: var(--saffron); color: #1b1840; }
.btn.danger { background: var(--rose); color: #fff; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:active, .chip:active, .qopt:active { transform: scale(0.97); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(22px, 5vw, 30px); }
.sub { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.msg-err { color: var(--rose); font-size: 14px; min-height: 1.2em; }
.label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px; font-weight: 600; }
.seg button[aria-pressed="true"] { border-color: var(--lapis); background: var(--lapis); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px; padding: 7px 13px; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: #1b1840; font-weight: 600; }
.chip.sm { font-size: 12px; padding: 4px 10px; }
.cat-lbl { font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty b { display: block; font: 700 18px var(--display); color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--saffron); }
.av { border-radius: 50%; background: var(--chip); flex: none; object-fit: cover; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.prog { height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--saffron); border-radius: 99px; }

/* ---------- landing ---------- */
.landing { min-height: 100dvh; display: flex; flex-direction: column; }
.hero { position: relative; overflow: hidden; background: #1f1d6b; color: #fff; min-height: min(760px, 92dvh); display: flex; flex-direction: column; }
.hero canvas.world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(24,22,84,.92) 0%, rgba(24,22,84,.6) 40%, rgba(24,22,84,0) 72%); }
.hero > .in { position: relative; z-index: 2; max-width: 1080px; width: 100%; margin: 0 auto; padding: calc(var(--safe-t) + 20px) 16px 40px; display: flex; flex-direction: column; flex: 1; }
.hero .brand { color: #fff; }
.hero h1 { font-size: clamp(34px, 7vw, 64px); font-weight: 800; max-width: 13ch; margin-top: auto; }
.hero p.lead { max-width: 46ch; color: #e4e2ff; font-size: 17px; margin: 14px 0 22px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.alt { color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(180deg, rgba(24,22,84,.25) 0%, rgba(24,22,84,.55) 45%, rgba(24,22,84,.95) 80%); }
}
.how { max-width: 1080px; margin: 0 auto; padding: 40px 16px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); width: 100%; }
.how .step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.how .step .n { font: 800 13px var(--display); color: var(--saffron); letter-spacing: 0.08em; }
.how .step h3 { font-size: 18px; margin: 6px 0; }
.how .step p { margin: 0; color: var(--muted); font-size: 15px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 20px 16px calc(30px + var(--safe-b)); color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; width: 100%; }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px); }
.auth .panel { width: 100%; max-width: 420px; display: grid; gap: 16px; }
.auth h1 { font-size: 26px; }
.otp { letter-spacing: 0.5em; font: 700 26px var(--display); text-align: center; }
.devcode { background: var(--chip); border-radius: 10px; padding: 8px 12px; font-size: 13px; }

/* ---------- onboarding ---------- */
.wizard { max-width: 760px; margin: 0 auto; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.steps i.on { background: var(--saffron); }
.wiz-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; flex-wrap: wrap; }
.avs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.avs button { padding: 0; border: 3px solid transparent; border-radius: 20px; background: none; overflow: hidden; aspect-ratio: 1; }
.avs button[aria-pressed="true"] { border-color: var(--saffron); }
.avs img { display: block; width: 100%; height: 100%; object-fit: cover; }

.quiz { display: grid; gap: 12px; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.qnum { font: 700 15px var(--display); font-variant-numeric: tabular-nums; }
.qdots { display: flex; gap: 5px; flex-wrap: wrap; }
.qdots button { width: 18px; height: 8px; border-radius: 99px; border: 0; background: var(--line); padding: 0; }
.qdots button.done { background: var(--saffron); }
.qdots button[aria-current="true"] { background: var(--lapis); width: 30px; }
.qtitle { font: 700 clamp(18px, 4.4vw, 24px)/1.2 var(--display); }
.qtitle .qtag { display: inline-block; font: 700 11px var(--body); letter-spacing: 0.1em; text-transform: uppercase; background: var(--saffron); color: #1b1840; padding: 3px 8px; border-radius: 6px; margin-right: 8px; vertical-align: 4px; }
.qsub { margin: -4px 0 0; color: var(--muted); font-size: 15px; }
.stage { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--chip); }
.stage canvas { display: block; width: 100%; height: 190px; }
.stage .cap { position: absolute; left: 12px; bottom: 10px; background: rgba(20,18,50,.72); color: #fff; font: 600 13px var(--body); padding: 5px 11px; border-radius: 999px; }
.qcard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
.qcard .or { align-self: center; font: 700 11px var(--display); color: var(--muted); }
.qopt { border: 2px solid var(--line); background: var(--surface); border-radius: 18px; padding: 10px 10px 12px; font: 600 clamp(14px, 3.4vw, 16px)/1.3 var(--body); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.qopt img { width: 100%; aspect-ratio: 16/10; border-radius: 12px; object-fit: cover; display: block; }
.qopt[aria-pressed="true"] { border-color: var(--lapis); background: var(--lapis); color: #fff; }
.qnote { background: var(--chip); border-radius: 14px; padding: 12px 14px; font-size: 14px; border-left: 4px solid var(--saffron); }
.qnote b { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron); margin-bottom: 2px; }

/* ---------- discover ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { font-size: 18px; }
.card .meta { font-size: 13px; color: var(--muted); }
.meter { position: relative; width: 62px; height: 62px; flex: none; }
.meter svg { width: 62px; height: 62px; transform: rotate(-90deg); }
.meter b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px var(--display); font-variant-numeric: tabular-nums; }
.ice { font-size: 14px; background: var(--chip); border-radius: 12px; padding: 10px 12px; }
.ice b { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lapis); margin-bottom: 2px; }
.card .acts { display: flex; gap: 8px; }
.card .acts .btn { flex: 1; }
.card .btn.liked { background: var(--chip); color: var(--ink); }
.kebab { width: 44px; flex: none; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; font-size: 20px; line-height: 1; }

/* ---------- matches ---------- */
.list { display: grid; gap: 10px; }
.mrow { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mrow .name { font-weight: 700; }
.mrow .last { font-size: 14px; color: var(--muted); }
.mrow { min-width: 0; }
@media (max-width: 440px) { .mrow .alt { display: none; } }
.mrow .badge { flex: none; background: var(--rose); color: #fff; border-radius: 99px; font-size: 12px; padding: 2px 9px; font-weight: 600; white-space: nowrap; }
.mrow .alt { font: 700 12px var(--display); color: var(--saffron); white-space: nowrap; }
.online { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); position: absolute; right: 0; bottom: 2px; }
.avwrap { position: relative; flex: none; }

/* ---------- climb ---------- */
.climb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.climb-head h2 { font-size: clamp(18px, 4vw, 22px); }
.pair-av { display: flex; }
.pair-av img { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--surface); }
.pair-av img + img { margin-left: -12px; }
.climb { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 820px) { .climb { grid-template-columns: 1fr; } }
.mount { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #9fd2ff; }
.mount canvas { display: block; width: 100%; height: 400px; touch-action: none; }
@media (max-width: 820px) { .mount canvas { height: 320px; } }
.mount .alt { position: absolute; left: 12px; top: 12px; background: rgba(20,18,50,.75); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 12px; }
.mount .alt b { display: block; font: 700 20px var(--display); font-variant-numeric: tabular-nums; }
.mount .hint { position: absolute; left: 12px; bottom: 12px; font-size: 12px; color: #fff; background: rgba(20,18,50,.6); padding: 4px 10px; border-radius: 99px; }
.mount2d { padding: 16px; display: grid; gap: 10px; background: linear-gradient(180deg, #7fb8f0, #dff0ff); }
.challenge { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 10px; }
.challenge .step { font: 700 11px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron); }
.challenge h3 { font-size: 18px; }
.challenge p { margin: 0; color: var(--muted); font-size: 15px; }
.challenge textarea { min-height: 72px; resize: vertical; }
.q2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.q2 button { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px; font-weight: 500; }
.q2 button[aria-pressed="true"] { background: var(--lapis); color: #fff; border-color: var(--lapis); }
.q2 .or { font: 700 11px var(--display); color: var(--muted); }
.wait { font-size: 14px; background: var(--chip); border-radius: 12px; padding: 10px 12px; }
.reveal-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.reveal-pair div { background: var(--chip); border-radius: 12px; padding: 10px 12px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.reveal-pair b, .ml { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.code { background: var(--lapis); color: #fff; border-radius: 16px; padding: 16px; }
.code b { display: block; font: 800 clamp(20px, 4vw, 28px)/1.2 var(--display); margin: 6px 0; color: var(--saffron); }
.code small { font-size: 13px; color: #dcdaff; display: block; }
.code .ml { color: #c9c6ff; }
.crow { display: flex; gap: 8px; flex-wrap: wrap; }
.crow input { flex: 1 1 200px; min-width: 0; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; min-height: 440px; max-height: 70dvh; }
.chat h3 { font-size: 15px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 16px; font-size: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.bub.me { align-self: flex-end; background: var(--lapis); color: #fff; border-bottom-right-radius: 4px; }
.bub.them { align-self: flex-start; background: var(--chip); border-bottom-left-radius: 4px; }
.bub.sys { align-self: center; background: transparent; color: var(--muted); font-size: 12px; text-align: center; }
.sugg { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 10px; }
.sugg button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 11px; font-size: 13px; text-align: left; }
.chat-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-in .btn { padding: 10px 16px; }

/* ---------- daily ---------- */
.daily { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.bars { display: grid; gap: 10px; }
.bar { position: relative; border-radius: 14px; overflow: hidden; background: var(--chip); padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.bar i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--saffron) 45%, transparent); z-index: 0; transition: width 0.8s cubic-bezier(.2,.8,.2,1); }
.bar span, .bar b { position: relative; z-index: 1; }
.bar.mine { outline: 2px solid var(--lapis); }
.bar b { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- profile / admin ---------- */
.me-card { display: flex; gap: 16px; align-items: center; }
.me-card img { width: 96px; height: 96px; border-radius: 24px; }
.menu { display: grid; gap: 2px; margin-top: 16px; }
.menu button, .menu a { text-align: left; background: none; border: 0; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); text-decoration: none; display: flex; justify-content: space-between; }
.menu .danger { color: var(--rose); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.tile b { display: block; font: 800 26px var(--display); font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; color: var(--muted); }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.report .pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--rose); color: #fff; }
.doc { max-width: 70ch; margin: 0 auto; }
.doc h1 { font-size: 26px; margin-bottom: 12px; }
.doc h2 { font-size: 18px; margin: 22px 0 8px; }

/* ---------- overlays ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 16px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 40; max-width: calc(100% - 32px); }
.ovl { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(14,12,40,.72); padding: 16px; }
.ovl-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 24px 20px; max-width: 420px; width: 100%; display: grid; gap: 12px; max-height: 90dvh; overflow: auto; }
.ovl-card h2 { font-size: 22px; }
.ovl-card .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ovl-card.match { text-align: center; }
.ovl-card.match h2 { font-size: clamp(28px, 7vw, 38px); color: var(--rose); }
.ovl-card .eb { font: 700 11px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron); }
.ovl-card.match .acts { justify-content: center; }
.duo { display: flex; justify-content: center; align-items: center; margin: 8px 0; }
.duo img { width: min(96px, 26vw); height: min(96px, 26vw); border-radius: 50%; border: 4px solid var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.duo .heart { width: 46px; height: 46px; color: var(--rose); margin: 0 -10px; position: relative; z-index: 1; }
.radio { display: grid; gap: 8px; }
.radio label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 500; }
.radio input { width: auto; }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.fx i { position: absolute; top: -20px; width: 9px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter 0.35s ease; }
  @keyframes enter { from { transform: translateY(10px); } to { transform: none; } }
  .qcard.anim { animation: qin 0.35s cubic-bezier(.2,.9,.3,1.2); }
  @keyframes qin { from { transform: translateX(28px) rotate(1deg); } to { transform: none; } }
  .qopt { transition: transform 0.18s, background 0.18s, border-color 0.18s; }
  .qopt:hover { transform: translateY(-3px); }
  .ovl-card { animation: pop 0.4s cubic-bezier(.2,1.4,.4,1); }
  @keyframes pop { from { transform: scale(0.9); } to { transform: none; } }
  .duo .l { animation: inL 0.7s cubic-bezier(.2,1.4,.4,1); }
  .duo .r { animation: inR 0.7s cubic-bezier(.2,1.4,.4,1); }
  .duo .heart { animation: beat 1s 0.5s infinite; }
  @keyframes inL { from { transform: translateX(-60px) rotate(-12deg); } to { transform: none; } }
  @keyframes inR { from { transform: translateX(60px) rotate(12deg); } to { transform: none; } }
  @keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
}
