/* Ask Lucky — white theme matching luckyspindragon.com */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:#f8fafc;color:#1e293b}
a{color:#db2777;text-decoration:none}
a:hover{text-decoration:underline}
.loading{text-align:center;color:#64748b;padding:48px 16px}
.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e2e8f0;padding:8px 16px}
.logo{height:52px;width:auto;display:block}
.auth-area{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.me-name{font-weight:600;color:#334155}
.btn{font:inherit;font-weight:600;border-radius:999px;border:1px solid #e2e8f0;background:#fff;color:#334155;padding:8px 16px;cursor:pointer}
.btn:hover{border-color:#cbd5e1}
.btn.primary{background:linear-gradient(90deg,#db2777,#7c3aed);border:none;color:#fff}
.btn.primary:disabled{opacity:.6;cursor:wait}
.btn.big{width:100%;padding:12px 16px;font-size:16px}
.btn.small{padding:4px 10px;font-size:13px}
.btn.ghost{background:transparent}
.wrap{max-width:760px;margin:0 auto;padding:24px 16px 48px}
.hero{display:flex;gap:16px;align-items:center;margin:8px 0 20px}
.hero-avatar{width:84px;height:84px;border-radius:50%;object-fit:cover;flex:none;background:#fff;border:1px solid #e2e8f0}
.hero h1{margin:0 0 6px;font-size:34px;letter-spacing:-.02em}
.hero-line{margin:0;color:#475569;line-height:1.55}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.ask-box{width:100%;font:inherit;line-height:1.5;border:1px solid #cbd5e1;border-radius:12px;padding:12px;resize:vertical;color:#1e293b;background:#fff}
.ask-box:focus{outline:2px solid #db2777;outline-offset:1px;border-color:transparent}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.chip{font:inherit;font-size:14px;background:#fdf2f8;color:#9d174d;border:1px solid #fbcfe8;border-radius:999px;padding:6px 12px;cursor:pointer}
.chip:hover{background:#fce7f3}
.notice{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:10px 12px;margin:12px 0;line-height:1.5}
.hidden{display:none}
.hint{color:#64748b;font-size:14px;margin:12px 0 0;text-align:center}
.feed-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 14px;flex-wrap:wrap}
.feed-head h2{margin:0;font-size:22px}
.search{font:inherit;border:1px solid #cbd5e1;border-radius:999px;padding:9px 16px;min-width:min(260px,100%);color:#1e293b;background:#fff}
.search:focus{outline:2px solid #db2777;outline-offset:1px;border-color:transparent}
.qa-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:none;background:#f1f5f9}
.avatar.initial{display:inline-flex;align-items:center;justify-content:center;font-weight:700;color:#fff;background:linear-gradient(135deg,#db2777,#7c3aed)}
.qa-name{font-weight:700}
.lucky-name{color:#9d174d}
.qa-time{color:#94a3b8;font-size:13px}
.delete{margin-left:auto;color:#b91c1c}
.qa-question{margin:0 0 14px;font-size:17px;line-height:1.55;overflow-wrap:break-word}
.answer{border-left:3px solid #db2777;background:#fdf2f8;border-radius:0 12px 12px 0;padding:12px 14px}
.qa-answer{margin:0;line-height:1.65;color:#334155;overflow-wrap:break-word}
.qa-answer.muted{color:#64748b}
.empty{text-align:center;color:#64748b}
.footer{text-align:center;color:#64748b;margin-top:36px;line-height:1.8}
.foot-note{font-size:14px;margin:6px 0 0}
.modal-back{position:fixed;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}
.modal{position:relative;background:#fff;border-radius:18px;padding:26px 22px;width:min(400px,100%);box-shadow:0 20px 50px rgba(15,23,42,.25)}
.modal-logo{height:64px;width:auto;display:block;margin:0 auto 8px}
.modal h2{text-align:center;margin:0 0 16px}
.field{display:block;width:100%;font:inherit;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;margin-bottom:12px;color:#1e293b}
.field:focus{outline:2px solid #db2777;outline-offset:1px;border-color:transparent}
.adult{display:flex;gap:8px;align-items:center;color:#334155;margin-bottom:12px}
.swap{display:block;margin:12px auto 0}
.close{position:absolute;top:10px;right:10px;border:none;padding:6px 10px}
@media (max-width:560px){
  .logo{height:42px}
  .hero{flex-direction:column;text-align:center}
  .hero h1{font-size:30px}
  .feed-head{flex-direction:column;align-items:stretch}
  .search{width:100%}
  .me-name{display:none}
}
