/* 紅｜明鏡 */
body.t-red{background:radial-gradient(ellipse 90% 55% at 50% 22%,#2A0A10 0%,#0A0507 60%,#050304 100%) fixed;background-color:#050304}
.mj{max-width:720px;margin:0 auto;padding:4px 16px calc(170px + env(safe-area-inset-bottom,0px));min-height:calc(100vh - var(--top-h))}
.mj-hello{text-align:center;padding:12px 0 8px;transition:opacity .4s,max-height .5s;overflow:hidden;max-height:900px}
.mj.talking .mj-hello{opacity:0;max-height:0;padding:0}
.mj-mirror{width:min(38vw,200px);height:auto;display:block;margin:0 auto}
.mj-rip ellipse{transform-box:fill-box;transform-origin:center;animation:mjr 4s ease-out infinite}
.mj-rip ellipse:nth-child(2){animation-delay:.4s}.mj-rip ellipse:nth-child(3){animation-delay:.8s}
@keyframes mjr{0%{transform:scale(.6);opacity:0}30%{opacity:1}100%{transform:scale(1.25);opacity:0}}
.mj.typing .mj-rip ellipse{animation-duration:1.4s}
@media (prefers-reduced-motion:reduce){.mj-rip ellipse{animation:none}}
.mj-hello h1{font-size:clamp(22px,5vw,34px);margin:10px 0 16px;line-height:1.5}
.mj-start{display:flex;flex-direction:column;gap:8px;max-width:440px;margin:0 auto}
.mj-start button{min-height:48px;padding:10px 16px;border-radius:14px;border:1px solid rgba(224,38,46,.38);background:rgba(224,38,46,.07);color:var(--ink);font-size:15px;text-align:left}
.mj-chat{display:flex;flex-direction:column;gap:14px;padding:8px 0}
.mj-chat .msg{max-width:86%;padding:12px 16px;line-height:1.75;font-size:16px;white-space:pre-wrap;word-break:break-word}
.mj-chat .me{align-self:flex-end;background:#3A1218;border-radius:18px 18px 4px 18px}
.mj-chat .bot{align-self:flex-start;background:#140A0E;border:1px solid rgba(224,38,46,.3);border-radius:18px 18px 18px 4px}
.mj-chat .bot strong{color:var(--red2)}
.mj-chat .take{align-self:flex-start;font-size:13px;border:0;background:none;color:var(--red2);padding:4px 2px;min-height:36px}
.mj-ask{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:8px;align-items:flex-end;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,rgba(5,3,4,0),rgba(5,3,4,.96) 30%);max-width:744px;margin:0 auto}
.mj-ask textarea{flex:1;min-height:50px;max-height:160px;resize:none;border-radius:25px;border:1px solid rgba(224,38,46,.5);background:rgba(16,6,9,.95);color:var(--ink);padding:13px 18px;font:inherit;font-size:16px;line-height:1.5}
.mj-ask button{flex:none;width:50px;height:50px;border-radius:25px;border:0;display:flex;align-items:center;justify-content:center}
.mj-mic{background:rgba(224,38,46,.18);color:var(--ink)}
.mj-mic[aria-pressed=true]{background:var(--red);animation:mjp 1s ease-in-out infinite}
@keyframes mjp{50%{box-shadow:0 0 0 8px rgba(224,38,46,.25)}}
.mj-send{background:var(--red);color:#fff}
.mj-left{position:fixed;left:0;right:0;bottom:calc(72px + env(safe-area-inset-bottom,0px));text-align:center;z-index:29;margin:0;font-size:12px}
.mj-modal{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:20px}
.mj-modal[hidden]{display:none}
.mj-card{max-width:420px;width:100%;padding:24px 22px;border-radius:22px;background:#140A0E;border:1px solid rgba(224,38,46,.4)}
.mj-card h2{font-size:22px;margin:0 0 12px}
.mj-card p{color:#E2D6D8;line-height:1.75;margin:0 0 12px}

.mj-left{background:rgba(5,3,4,.9);padding:4px 0}
@media (max-height:700px){.mj-mirror{width:28vw}}
