/* Ye Ya Woh — styles. Warm, bold, mobile first. */
:root {
  --bg: #fff7f0; --card: #fff; --ink: #221a16; --ink-2: #6f625a; --line: #efe3d8; --soft: #fbeee3;
  --accent: #e8452c; --accent-ink: #fff; --accent-soft: #fde4dd; --marigold: #f2a93b; --green: #1fa37a; --wa: #25d366;
  --s0: #e8452c; --s1: #2d7ff9; --s2: #f2a93b; --s3: #1fa37a;
  --r: 18px; --r-sm: 12px; --shadow: 0 1px 2px rgba(60,30,10,.05), 0 6px 20px rgba(60,30,10,.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top: 60px; --bottom: 64px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17110e; --card: #221a16; --ink: #f6ece5; --ink-2: #b7a79c; --line: #3a2e27; --soft: #2c221c; --accent-soft: #4a2219; --shadow: 0 1px 2px rgba(0,0,0,.3); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; padding-bottom: calc(var(--bottom) + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: var(--ink); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.muted { color: var(--ink-2); } .small { font-size: 13px; } .center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1120px; margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; flex-shrink: 0; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; white-space: nowrap; overflow: hidden; border-radius: 11px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -.04em; transform: rotate(-4deg); }
.logo-mark i { font-style: normal; color: #ffd8a8; margin: 0 1px; }
.logo-mark.big { width: 56px; height: 56px; font-size: 20px; border-radius: 16px; }
.logo-text { font-size: 18px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 40px; max-width: 460px; }
.search svg { width: 18px; height: 18px; color: var(--ink-2); flex-shrink: 0; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; }
.search.big { height: 50px; max-width: none; margin: 8px 0 16px; }
.topnav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tn { font-weight: 600; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); }
.tn.is-active, .tn:hover { color: var(--ink); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.me-pill img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 720px) { .logo-text, .topnav .desk-only, .topnav .tn:not(.icon-btn) { display: none; } .search { height: 38px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); background: var(--card); transition: transform .1s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #d63b23; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-danger { background: #c62f1b; color: #fff; border-color: #c62f1b; }
.btn:disabled { opacity: .6; pointer-events: none; }
.link { color: var(--accent); font-weight: 600; padding: 8px; }
.link-danger { color: #c62f1b; font-weight: 600; font-size: 14px; margin-top: 14px; }

/* ---------- Layout ---------- */
.main { min-height: calc(100vh - var(--top) - 120px); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 16px; }
.wrap.narrow { max-width: 620px; }
.feed-wrap { max-width: 620px; margin: 0 auto; padding: 12px 12px 24px; }
.page-head { margin: 8px 4px 16px; }
.page-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--ink-2); }
.sec-title { font-size: 17px; margin: 22px 4px 12px; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 620px) 1fr; } }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 24px 16px; color: var(--ink-2); font-size: 13px; }
.center-box { text-align: center; padding-top: 60px; }

/* ---------- Hero ---------- */
.hero { padding: 22px 6px 12px; }
.hero h1 { font-size: clamp(30px, 8vw, 44px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 10px; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--ink-2); margin: 0 0 16px; max-width: 46ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Tabs + chips ---------- */
.tabs { display: flex; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; margin: 4px 0 10px; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: 999px; font-weight: 700; color: var(--ink-2); }
.tab.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.catbar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-follow { height: 30px; padding: 0 12px; font-size: 13px; color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); margin-left: auto; }
.chip-follow.is-on { color: var(--ink-2); background: transparent; border-color: var(--line); }

/* ---------- Question card ---------- */
.feed { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
.qcard { padding: 14px 14px 6px; }
.qhead { display: flex; align-items: center; gap: 8px; }
.qauthor { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qauthor img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.qauthor span { display: flex; flex-direction: column; min-width: 0; }
.qauthor b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qauthor small { color: var(--ink-2); font-size: 12px; }
.qhead .qmenu { margin-left: auto; }
.qhead .chip-follow + .qmenu { margin-left: 0; }
.verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #2d7ff9; color: #fff; font-size: 9px; font-style: normal; margin-left: 4px; vertical-align: 1px; }
.qtitle { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; margin: 12px 2px 10px; }
h1.qtitle { font-size: 22px; }
.qdesc { margin: -4px 2px 12px; color: var(--ink-2); }

.opts { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.opts.n3 .opt:first-child { grid-row: span 2; }
.opt { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--soft); aspect-ratio: 3 / 4; isolation: isolate; outline-offset: 2px; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.opts.n3 .opt:first-child { aspect-ratio: auto; }
.opts.n4 .opt { aspect-ratio: 1 / 1; }
.opt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; }
.opt:hover img { transform: scale(1.03); }
.opt.tapped { transform: scale(.96); }
.opt .letter { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #221a16; font-weight: 800; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.opt-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; align-items: flex-end; justify-content: space-between; padding: 24px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 13px; font-weight: 700; text-align: left; }
.opt-foot:empty { display: none; }
.opt-price { background: var(--marigold); color: #221a16; padding: 2px 8px; border-radius: 999px; font-size: 12px; flex-shrink: 0; }
.opt .result { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 35%, rgba(0,0,0,.55)); z-index: 1; }
.opt .bar { position: absolute; left: 0; bottom: 0; height: 6px; width: var(--p, 0%); background: rgba(255,255,255,.9); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.opt.is-mine .bar { background: var(--accent); }
.opt.is-correct .bar { background: var(--green); }
.opt .pct { position: absolute; left: 10px; bottom: 30px; font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); letter-spacing: -.02em; }
.opt-foot { z-index: 2; }
.has-results .opt img { filter: saturate(.85); }
.opt.is-mine { box-shadow: 0 0 0 3px var(--accent); }
.opt.is-mine .letter { background: var(--accent); color: #fff; }
.opt.is-mine .letter::after { content: '✓'; position: absolute; font-size: 0; }
.opt.is-correct { box-shadow: 0 0 0 3px var(--green); }
.opt.is-correct .letter { background: var(--green); color: #fff; }
.opt.is-final::before { content: ''; position: absolute; inset: 0; border: 3px solid var(--marigold); border-radius: var(--r-sm); z-index: 2; pointer-events: none; }
.final-tag { position: absolute; top: 8px; right: 8px; z-index: 3; background: var(--marigold); color: #221a16; font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.opt[aria-disabled=true] { cursor: default; }
.buy-link { display: inline-block; margin: 10px 8px 0 2px; font-size: 13px; font-weight: 700; color: var(--accent); }

.qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ink-2); margin: 10px 2px 2px; }
.qmeta [data-total] { color: var(--ink); font-weight: 700; }
.cat-chip { color: var(--ink-2); }
.cat-chip:hover { color: var(--accent); }
.hint { margin-left: auto; color: var(--accent); font-weight: 600; }
.qactions { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 2px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 10px 8px; color: var(--ink-2); font-weight: 600; font-size: 13px; border-radius: 10px; }
.act:hover { color: var(--ink); background: var(--soft); }
.act svg { width: 20px; height: 20px; }
.act.is-on { color: var(--accent); }
.act.is-on svg { fill: currentColor; }
.ad-card { padding: 12px; }
.ad-label { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

.feed-more { display: grid; place-items: center; padding: 24px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.empty h3 { color: var(--ink); margin: 0 0 6px; }

/* ---------- Question page ---------- */
.qpage { display: grid; gap: 20px; max-width: 620px; }
@media (min-width: 980px) { .qpage { grid-template-columns: minmax(0, 620px) 340px; max-width: 1000px; } .qpage-side .opts.n4 .opt { aspect-ratio: 1; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 14px; }
.panel h2 { font-size: 17px; margin: 0 0 8px; }
.panel h2 small { color: var(--ink-2); font-weight: 600; }
.share-nudge { background: var(--accent-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.share-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.final-row { display: flex; gap: 10px; margin: 6px 0; }
.final-btn { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 3px solid transparent; }
.final-btn img { width: 100%; height: 100%; object-fit: cover; }
.final-btn span { position: absolute; left: 4px; top: 4px; background: #fff; color: #221a16; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.final-btn.is-on { border-color: var(--marigold); }
.bd-title { font-size: 13px; color: var(--ink-2); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.bd { display: flex; flex-direction: column; gap: 6px; }
.bd-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; font-size: 13px; }
.bd-name small { color: var(--ink-2); }
.bd-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--soft); }
.seg { display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.seg.s0 { background: var(--s0); } .seg.s1 { background: var(--s1); } .seg.s2 { background: var(--s2); color: #221a16; } .seg.s3 { background: var(--s3); }

/* comments */
.comment-form { display: grid; gap: 8px; margin: 8px 0 14px; }
.comment-form textarea, .field input, .field textarea, .field select, .inline-form input, .sheet textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 11px 12px; outline: 0; resize: vertical; }
.comment-form textarea:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.comment-form .btn { justify-self: end; }
.replying { font-size: 13px; color: var(--ink-2); }
.replying button { color: var(--accent); font-weight: 600; margin-left: 6px; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.comment.is-reply { margin-left: 42px; border-top: 0; padding-top: 4px; }
.comment.is-pinned { background: linear-gradient(90deg, var(--accent-soft), transparent); margin: 0 -16px; padding: 10px 16px; }
.c-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.c-body { flex: 1; min-width: 0; }
.c-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.c-head small { color: var(--ink-2); }
.voted-chip, .pin-chip { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.pin-chip { background: var(--marigold); color: #221a16; }
.c-body p { margin: 3px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-body p a { color: var(--accent); font-weight: 600; }
.c-actions { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.c-actions button:hover { color: var(--ink); }
.c-actions .is-on { color: var(--accent); }

/* ---------- Forms ---------- */
.ask-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: 14px; }
.alert { background: #fde8e6; color: #9c2a1a; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; }
.form-error { color: #c62f1b; font-weight: 600; font-size: 14px; }
.row2, .row3 { display: grid; gap: 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding-left: 12px; }
.prefix b { color: var(--ink-2); }
.prefix input { border: 0 !important; background: transparent !important; }
.seg-ctrl { display: flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 4px; }
.seg-ctrl label { flex: 1; }
.seg-ctrl input { position: absolute; opacity: 0; pointer-events: none; }
.seg-ctrl span { display: block; text-align: center; padding: 8px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg-ctrl input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seg-ctrl input:focus-visible + span { outline: 2px solid var(--accent); }
.seg-ctrl.small { margin-bottom: 12px; }
.chip-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick span { display: inline-flex; height: 38px; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip-pick input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-pick input:focus-visible + span { outline: 2px solid var(--accent); }
.opt-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { display: grid; gap: 6px; }
.slot-drop { position: relative; aspect-ratio: 3 / 4; border: 2px dashed var(--line); border-radius: 14px; background: var(--card); display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.slot-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot-letter { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 13px; z-index: 2; }
.slot-hint { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.slot-hint::before { content: '+'; display: block; text-align: center; font-size: 30px; line-height: 1; color: var(--accent); }
.slot-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slot.has-img .slot-drop { border-style: solid; }
.slot input[type=url], .slot input[inputmode], .slot-label { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.deal-only { display: none; gap: 6px; }
.quiz-only { display: none; font-size: 13px; font-weight: 700; align-items: center; gap: 6px; }
[data-type=deal] .deal-only { display: grid; }
[data-type=quiz] .quiz-only { display: flex; }
.type-help { display: none; }
[data-type=pick] .type-help.t-pick, [data-type=deal] .type-help.t-deal, [data-type=quiz] .type-help.t-quiz { display: block; }
.inline-form { display: flex; gap: 8px; margin-bottom: 8px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); }
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-brand .logo-mark { margin-bottom: 12px; }
.auth-brand h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
.auth-brand p { margin: 0; color: var(--ink-2); }
.g-wrap { display: flex; justify-content: center; min-height: 44px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.otp-form { display: grid; gap: 12px; }
.otp-form [data-step] { display: grid; gap: 12px; }
.code-input { font-size: 24px !important; letter-spacing: .4em; text-align: center; font-weight: 800; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 18px; align-items: flex-start; padding: 16px 6px 20px; }
.p-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.p-info h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.p-bio { margin: 8px 0; white-space: pre-wrap; }
.p-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0; font-size: 14px; color: var(--ink-2); }
.p-stats b { color: var(--ink); }
.p-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.avatar-edit { display: flex; align-items: center; gap: 14px; }
.avatar-edit img { border-radius: 50%; object-fit: cover; width: 72px; height: 72px; }
.user-list { display: flex; flex-direction: column; gap: 4px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.user-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-mini img { border-radius: 50%; object-fit: cover; width: 44px; height: 44px; flex-shrink: 0; }
.user-mini span { display: flex; flex-direction: column; min-width: 0; }
.user-mini small { color: var(--ink-2); font-size: 13px; }
.req-btns { display: flex; gap: 6px; margin-top: 6px; }

/* explore */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: 15px; transition: transform .15s; }
.cat-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.cat-ico { font-size: 26px; }
.guru-list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.guru-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.guru-list li:last-child { border-bottom: 0; }
.guru-list .user-mini img { width: 32px; height: 32px; }
.rank { width: 22px; font-weight: 800; color: var(--accent); }
.score { margin-left: auto; font-weight: 800; }

/* notifications */
.notif { display: flex; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.notif.is-new { background: var(--accent-soft); border-radius: 12px; padding: 12px; }
.notif img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notif-body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.notif-body small { color: var(--ink-2); }
.prose { font-size: 16px; line-height: 1.65; }
.danger-zone { border-color: #f3c4bc; }

/* ---------- Bottom nav (mobile) ---------- */
.bottomnav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: calc(var(--bottom) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; }
.bn { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-2); padding: 6px 10px; }
.bn.is-active { color: var(--ink); }
.bn.is-active svg { stroke-width: 2.4; }
.bn-ask .ask-plus { display: grid; place-items: center; width: 50px; height: 40px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 28px; font-weight: 400; line-height: 1; box-shadow: 0 4px 12px rgba(232,69,44,.35); }
@media (min-width: 721px) { .bottomnav { display: none; } body { padding-bottom: 0; } }

/* ---------- Sheet + toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(20,10,5,.4); opacity: 0; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); max-width: 560px; margin: 0 auto; }
.sheet.open { transform: none; }
@media (min-width: 721px) { .sheet { bottom: 50%; border-radius: 22px; transform: translateY(60%) scale(.96); opacity: 0; transition: transform .2s, opacity .2s; } .sheet.open { transform: translateY(50%); opacity: 1; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 12px; }
.sheet-title { margin: 0 0 14px; font-size: 17px; }
.sheet-center { text-align: center; display: grid; gap: 10px; }
.sheet-center h3 { margin: 4px 0 0; }
.sheet-center p { margin: 0 0 6px; color: var(--ink-2); }
.sheet-list { display: flex; flex-direction: column; }
.sheet-list > a, .sheet-list > button { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sheet-list > :last-child { border-bottom: 0; }
.sheet-list .danger { color: #c62f1b; }
.sheet-list textarea { margin: 10px 0; }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.radio-row input { accent-color: var(--accent); width: 18px; height: 18px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-tile { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.sheet-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--soft); }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 8px 2px; border-radius: 12px; }
.share-btn:hover { background: var(--soft); }
.share-btn b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--soft); font-size: 22px; }
.share-btn.wa b { background: var(--wa); color: #fff; }
.share-btn.ig b { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }
.share-btn.fb b { background: #1877f2; color: #fff; font-family: Arial; }
.share-btn.x b { background: #111; color: #fff; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--bottom) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.2); max-width: calc(100% - 32px); text-align: center; animation: pop .2s; transition: opacity .4s; }
.toast.out { opacity: 0; }
.toast-err { background: #c62f1b; color: #fff; }
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } }
@media (min-width: 721px) { .toast { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
