:root{
  --bg:#f3f5f8;--card:#fff;--text:#17202a;--muted:#718096;
  --brand:#6c4df6;--user:#6c4df6;--bot:#eef1f5;--line:#e6e9ef
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:linear-gradient(145deg,#f7f8fb,#ebeef5);color:var(--text)}
.app{min-height:100vh;display:grid;place-items:center;padding:18px}
.chat-card{width:min(100%,460px);height:min(840px,calc(100vh - 36px));background:var(--card);border-radius:24px;box-shadow:0 20px 60px rgba(25,35,60,.15);display:flex;flex-direction:column;overflow:hidden;position:relative}
.chat-header{height:76px;padding:14px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}
.avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:white;font-weight:800;font-size:20px}
.status{font-size:12px;color:var(--muted);margin-top:3px}.status span{display:inline-block;width:8px;height:8px;background:#24b47e;border-radius:50%;margin-right:5px}
.messages{flex:1;overflow:auto;padding:20px 16px 10px;display:flex;flex-direction:column;gap:12px;background:#fafbfc}
.message{max-width:82%;padding:11px 14px;border-radius:18px;line-height:1.4;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}
.message.bot{align-self:flex-start;background:var(--bot);border-bottom-left-radius:6px}
.message.user{align-self:flex-end;background:var(--user);color:white;border-bottom-right-radius:6px}
.composer{display:flex;gap:10px;padding:12px;border-top:1px solid var(--line);background:white}
.composer input{flex:1;border:1px solid var(--line);border-radius:22px;padding:12px 15px;font-size:15px;outline:none}
.composer input:focus{border-color:var(--brand)}
.composer button{width:44px;height:44px;border:0;border-radius:50%;background:var(--brand);color:white;font-size:18px;cursor:pointer}
.typing{margin:0 16px 8px;background:var(--bot);width:58px;padding:11px 12px;border-radius:18px;display:flex;gap:4px}
.typing span{width:7px;height:7px;background:#9aa3af;border-radius:50%;animation:bounce 1s infinite}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
@keyframes bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}.hidden{display:none!important}
.offer{margin:8px 14px 10px;padding:14px;border:1px solid #ddd8ff;border-radius:16px;background:#f7f5ff;text-align:center}
.offer p{margin:0 0 10px;font-size:14px}.offer a{display:block;padding:12px;border-radius:12px;background:var(--brand);color:white;text-decoration:none;font-weight:700}.offer small{display:block;color:var(--muted);margin-top:8px;font-size:10px}
.age-gate{position:absolute;inset:76px 0 0;background:rgba(244,246,250,.97);z-index:5;display:grid;place-items:center;padding:22px}
.age-box{background:white;border-radius:20px;padding:25px;box-shadow:0 12px 40px rgba(25,35,60,.13);text-align:center}.age-box h1{margin-top:0}.age-box p{color:#596273;line-height:1.5}.age-box button{width:100%;border:0;border-radius:12px;padding:13px;background:var(--brand);color:white;font-weight:700;cursor:pointer}.age-box small{display:block;margin-top:12px;color:var(--muted);line-height:1.4}
@media(max-width:520px){.app{padding:0}.chat-card{height:100vh;border-radius:0}.age-gate{inset:76px 0 0}}
