.ken-trang{max-width:960px;margin:0 auto;padding:16px 16px 96px;font-family:'Nunito',system-ui,sans-serif}
.ken-trang h1{font:800 clamp(24px,5vw,34px) 'Baloo 2',sans-serif;margin:8px 0}.ken-phu{color:#5b6b7f;margin:0 0 16px}
.ken-ve{background:none;border:0;font:700 16px 'Nunito',sans-serif;color:#1f5fbf;min-height:44px;min-width:44px;padding:0 4px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.ken-luoi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:700px){.ken-luoi{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ken-the{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:112px;padding:14px 8px;border:3px solid #ffd45c;border-radius:22px;background:#fffaf0;cursor:pointer;font-family:inherit;box-shadow:0 5px 0 #f2b92c;transition:transform .12s}
.ken-the:active{transform:translateY(3px);box-shadow:0 2px 0 #f2b92c}.ken-the span{font-size:34px}.ken-the b{font-size:17px;color:#16355e}.ken-the small{color:#5b6b7f}.ken-nv .ken-the img{border-radius:50%;object-fit:cover;background:#e8f3ff}
.ken-giua,.ken-kq,.ken-het{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.ken-nut{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border:0;border-radius:999px;background:#1f9d55;color:#fff;font:800 18px 'Nunito',sans-serif;cursor:pointer;text-decoration:none;box-shadow:0 5px 0 #157a40}
.ken-nut-phu{background:#1f5fbf;box-shadow:0 5px 0 #174a92}.ken-hang{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.ken-loi{color:#b3261e;font-weight:700}
.ken-phong{display:flex;flex-direction:column;gap:12px;min-height:calc(100dvh - 150px);background:linear-gradient(#bfe3ff,#fff4c9);border-radius:28px;padding:12px 14px 20px;max-width:640px}
.ken-bar{display:flex;justify-content:space-between;align-items:center}.ken-dh{font:800 22px 'Baloo 2',sans-serif;background:#fff;border-radius:999px;padding:2px 16px}.ken-dh.sap-het{color:#d9381e;animation:kenNhay 1s infinite}
.ken-tt{min-width:44px;min-height:44px;border:0;border-radius:50%;background:#fff;font-size:22px;cursor:pointer}
.ken-san{display:flex;flex-direction:column;align-items:center;gap:6px}
.ken-nv-to{border-radius:50%;object-fit:cover;background:#fff;box-shadow:0 8px 0 rgba(0,0,0,.08);max-width:42vw;height:auto}
[data-tt=noi] .ken-nv-to,[data-tt=nghi] .ken-nv-to{animation:kenNhay .7s ease-in-out infinite}[data-tt=ghi] .ken-nv-to{box-shadow:0 0 0 8px #ff6b6b66}
.ken-song{display:flex;gap:5px;height:44px;align-items:center}.ken-song i{width:7px;border-radius:4px;background:#1f5fbf;height:8px;opacity:.3}
[data-tt=noi] .ken-song i{animation:kenSong .8s ease-in-out infinite;opacity:1}[data-tt=noi] .ken-song i:nth-child(2n){animation-delay:.15s}[data-tt=noi] .ken-song i:nth-child(3n){animation-delay:.3s}
[data-tt=ghi] .ken-song i{height:calc(8px + 36px * var(--nang,0.2) * var(--n,1));background:#e0453a;opacity:1;transition:height .08s}
.ken-song i:nth-child(odd){--n:.6}.ken-song i:nth-child(3n){--n:1}.ken-song i:nth-child(2n){--n:.8}
.ken-bong{background:#fff;border-radius:22px;padding:14px 16px;min-height:96px;box-shadow:0 4px 0 rgba(0,0,0,.06)}.ken-bong p{margin:0;font:700 clamp(19px,4.6vw,24px)/1.35 'Nunito',sans-serif;color:#16355e}.ken-bong small{display:block;margin-top:6px;color:#5b6b7f;font-size:15px}
.ken-sua{background:#fff3c2;border:2px solid #f2b92c;border-radius:18px;padding:10px 14px;display:flex;flex-direction:column;gap:3px}.ken-sua .sai{text-decoration:line-through;color:#b3261e}.ken-sua .dung{color:#157a40;font-weight:800;display:flex;gap:8px;align-items:center}.ken-sua small{color:#5b6b7f}
.ken-sua .sai::before{content:'❌ ';text-decoration:none;display:inline-block}.ken-sua .dung::before{content:'✅ '}.ken-loa{min-width:44px;min-height:44px;border:0;border-radius:50%;background:#fff;font-size:18px;cursor:pointer}
.ken-chip{min-height:44px;border:2px dashed #1f5fbf;border-radius:999px;background:#fff;padding:0 16px;font:700 16px 'Nunito',sans-serif;color:#1f5fbf;cursor:pointer;text-align:left}
.ken-dk{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:auto}
.ken-mic{width:88px;height:88px;border-radius:50%;border:0;background:#1f5fbf;color:#fff;font-size:38px;cursor:pointer;box-shadow:0 6px 0 #174a92}.ken-mic:disabled{opacity:.45}
[data-tt=ghi] .ken-mic{background:#e0453a;box-shadow:0 6px 0 #a82d25;animation:kenVong 1.2s infinite}
.ken-cham{min-width:52px;min-height:52px;border:0;border-radius:50%;background:#fff;font-size:24px;cursor:pointer}.ken-cho-bao{flex:1;max-width:200px;font-weight:700;color:#16355e;font-size:15px}
.ken-diem{list-style:none;padding:0;margin:8px 0;width:100%;max-width:460px;display:flex;flex-direction:column;gap:8px}.ken-diem li{display:flex;align-items:center;gap:10px;background:#fffaf0;border-radius:16px;padding:10px 14px}.ken-diem b{flex:1;text-align:left}.ken-sao{color:#f2a900;font-size:22px;letter-spacing:2px}
.ken-nx{max-width:460px;font-size:18px;line-height:1.45}.ken-tu{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}.ken-tu span{background:#e8f3ff;border-radius:999px;padding:6px 14px;font-weight:700}
.the-ai-ken{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:24px;background:linear-gradient(135deg,#ffd45c,#ffb347);text-decoration:none;color:#16355e;box-shadow:0 5px 0 #e69a1f;min-height:44px}.the-ai-ken img{width:64px;height:64px;border-radius:50%;object-fit:cover;background:#fff}.the-ai-ken b{display:block;font:800 19px 'Baloo 2',sans-serif}.the-ai-ken small{font-weight:700}
@keyframes kenVong{0%{outline:0 solid #e0453a55}100%{outline:16px solid #e0453a00}}
@keyframes kenNhay{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}@keyframes kenSong{0%,100%{height:8px}50%{height:38px}}
@media(prefers-reduced-motion:reduce){.ken-trang *{animation:none!important}}
.ken-phong .ken-nv-to{width:112px;height:112px;object-fit:cover;object-position:top}
@media(min-width:900px){.ken-phong .ken-nv-to{width:150px;height:150px}.ken-phong{margin-top:8px}}
.ken-phong{min-height:0}.ken-bong{min-height:84px}
.ken-dk{position:sticky;bottom:92px;background:linear-gradient(transparent,#fff4c9 30%);padding:10px 0 4px;z-index:2}
@media(min-width:900px){.ken-dk{bottom:12px}}
.ken-bong .k-vi{font-weight:600;color:#16355e}.ken-bong .k-en{font-weight:800;color:#1f5fbf}
/* ===== Giao dien toi kieu Hala Rabbit: nen xanh dam, vang sang sau nhan vat, 4 cot song am, phu de lon ===== */
.ken-trang{background:radial-gradient(1200px 500px at 50% -10%,#16409a55,transparent),linear-gradient(#071436,#0a2266 70%,#0b2d86);color:#eaf2ff;border-radius:28px;min-height:calc(100dvh - 120px)}
.ken-trang h1,.ken-trang h2{color:#fff}.ken-phu,.ken-trang p{color:#b9cdf5}.ken-ve{color:#8fc0ff}
.ken-the{background:rgba(255,255,255,.07);border:1px solid rgba(130,180,255,.45);box-shadow:0 0 18px rgba(40,110,255,.25);backdrop-filter:blur(6px)}
.ken-the:active{box-shadow:0 0 6px rgba(40,110,255,.4)}.ken-the b{color:#fff}.ken-the small{color:#9db8ea}.ken-nv .ken-the img{background:#0e2a74}
.ken-nut{background:#2b7bff;box-shadow:0 0 22px #2b7bff88}.ken-nut-phu{background:#1a2f6e;box-shadow:0 0 14px #2b7bff44}
.ken-diem li{background:rgba(255,255,255,.08)}.ken-diem b,.ken-nx{color:#fff}.ken-tu span{background:rgba(120,170,255,.18);color:#dbe8ff}
.ken-phong{position:fixed;inset:0;z-index:900;max-width:none;margin:0;border-radius:0;min-height:0;padding:max(12px,env(safe-area-inset-top)) 16px max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:0;
 background:radial-gradient(2px 2px at 12% 18%,#8fc0ff,transparent),radial-gradient(2px 2px at 82% 12%,#8fc0ff,transparent),radial-gradient(3px 3px at 70% 34%,#4aa3ff,transparent),radial-gradient(2px 2px at 20% 46%,#4aa3ff,transparent),radial-gradient(2px 2px at 90% 58%,#8fc0ff,transparent),radial-gradient(3px 3px at 8% 72%,#4aa3ff,transparent),radial-gradient(2px 2px at 60% 8%,#8fc0ff,transparent),linear-gradient(#050f2e,#0a2266 75%,#0b2d86)}
.kp-top{width:100%;max-width:560px;display:flex;align-items:center;justify-content:space-between}
.kp-ten{text-align:center;line-height:1.2}.kp-ten b{display:block;font:800 18px 'Baloo 2',sans-serif;color:#fff}.kp-ten small{color:#9db8ea;font-size:12px}.kp-ten .sap-het{color:#ff8f8f}
.ken-tt{background:rgba(255,255,255,.1);color:#fff}
.kp-san{position:relative;display:flex;justify-content:center;align-items:center;width:min(78vw,300px);aspect-ratio:1;margin-top:2vh}
.kp-halo{position:absolute;inset:-4%;border-radius:50%;background:radial-gradient(circle,#2f86ffcc 0%,#1c5de0aa 38%,#0a2a8000 72%);filter:blur(6px);animation:kpTho 3.2s ease-in-out infinite}
[data-tt=noi] .kp-halo{animation-duration:1.2s}[data-tt=ghi] .kp-halo{background:radial-gradient(circle,#ff5a5acc 0%,#d12a4aaa 38%,#4a0a2a00 72%)}
.ken-phong .ken-nv-to{position:relative;width:62%;height:62%;max-width:none;object-fit:cover;object-position:top;background:#fff;box-shadow:0 0 36px #4aa3ff88;animation:none!important}
[data-tt=noi] .ken-nv-to{animation:kenNhay 1.1s ease-in-out infinite!important}
.kp-nhan{font:800 15px 'Baloo 2',sans-serif;letter-spacing:.06em;color:#dbe8ff;transform:rotate(-6deg);margin:-6px 0 10px;text-shadow:0 0 10px #4aa3ff}
.ken-phong .ken-song{display:flex;gap:9px;height:60px;align-items:center;justify-content:center;margin:2px 0 6px}
.ken-phong .ken-song i{width:14px;border-radius:8px;background:#46a6ff;box-shadow:0 0 14px #46a6ffcc;opacity:1;height:16px}
.ken-phong .ken-song i:nth-child(2){height:28px}.ken-phong .ken-song i:nth-child(3){height:20px}.ken-phong .ken-song i:nth-child(4){height:34px}
.ken-phong[data-tt=noi] .ken-song i,.ken-phong[data-tt=nghi] .ken-song i{animation:kenSong .7s ease-in-out infinite}
.ken-phong[data-tt=noi] .ken-song i:nth-child(2n),.ken-phong[data-tt=nghi] .ken-song i:nth-child(2n){animation-delay:.18s}.ken-phong[data-tt=noi] .ken-song i:nth-child(3){animation-delay:.32s}
.ken-phong[data-tt=ghi] .ken-song i{background:#ff6b8a;box-shadow:0 0 14px #ff6b8acc;height:calc(14px + 40px * var(--nang,.2) * var(--n,1));transition:height .08s}
.ken-phong .ken-bong{background:none;box-shadow:none;border-radius:0;width:100%;max-width:560px;text-align:center;padding:0 6px;min-height:0;flex:1;display:flex;flex-direction:column;justify-content:flex-start;overflow:auto}
.ken-phong .ken-bong p{font:800 clamp(22px,6vw,34px)/1.3 'Baloo 2',sans-serif;color:#fff;text-shadow:0 2px 12px #000a}
.ken-phong .k-vi{color:#c9dcff;font-weight:700}.ken-phong .k-en{color:#ffe45c;font-weight:800;text-shadow:0 0 14px #ffd60055}
.ken-phong .ken-bong small{color:#8fb0ea}
.ken-phong .ken-sua{background:rgba(255,255,255,.1);border:1px solid rgba(255,228,92,.5);color:#fff;max-width:560px;width:100%;margin-top:6px}.ken-phong .ken-sua .sai{color:#ff9b9b}.ken-phong .ken-sua .dung{color:#8cf0b4}.ken-phong .ken-sua small{color:#b9cdf5}
.ken-phong .ken-goiy{max-width:560px;width:100%;margin-top:6px}.ken-phong .ken-chip{background:rgba(255,255,255,.08);color:#cfe3ff;border-color:rgba(130,180,255,.6)}
.ken-phong .ken-dk{position:static;background:none;padding:10px 0 6px;margin-top:6px;width:100%;max-width:560px;justify-content:center}
.ken-phong .ken-mic{background:radial-gradient(circle at 35% 30%,#59b0ff,#1f62e8);box-shadow:0 0 26px #2f86ffcc;width:84px;height:84px}
.ken-phong[data-tt=ghi] .ken-mic{background:radial-gradient(circle at 35% 30%,#ff8fa6,#d12a4a);box-shadow:0 0 26px #ff5a7acc;animation:kenVong 1.2s infinite}
.ken-phong .ken-cham{background:rgba(255,255,255,.12);color:#fff}.ken-phong .ken-cho-bao{color:#b9cdf5;max-width:150px}
.kp-chips{display:flex;gap:8px;overflow-x:auto;width:100%;max-width:640px;padding:4px 2px 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.kp-chips::-webkit-scrollbar{display:none}
.kp-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px 0 8px;border-radius:999px;border:1px solid rgba(130,180,255,.35);background:rgba(255,255,255,.07);color:#b9cdf5;font:700 13px 'Nunito',sans-serif;cursor:pointer;text-transform:uppercase;letter-spacing:.03em}
.kp-chip img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff}.kp-chip.dang{background:linear-gradient(#3a8bff,#1f62e8);color:#fff;border-color:#8fc0ff;box-shadow:0 0 14px #2f86ff99}
@keyframes kpTho{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.06);opacity:1}}
@media(max-height:640px){.kp-san{width:min(46vw,200px)}.ken-phong .ken-song{height:44px}}
@media(min-width:900px){.kp-san{width:300px}}
.ken-phong .ken-sua{display:none!important}
.ken-phong .ken-bong{min-height:120px}
.ken-phong .kp-san{width:min(54vw,230px);margin-top:0}
@media(max-height:700px){.ken-phong .kp-san{width:min(40vw,160px)}.ken-phong .ken-song{height:40px}}
.ken-phong .kp-chips{padding-bottom:max(2px,env(safe-area-inset-bottom))}
/* Transparent friends and hands-free conversation. */
.ken-nv .ken-the img,.ken-nv-to,.ken-phong .ken-nv-to,.kp-chip img{object-fit:contain;background:transparent;border-radius:0;box-shadow:none}
.ken-nv .ken-the img{width:110px;height:110px}.ken-nv .ken-the{background:#16336a}
.ken-dau{display:block;width:160px;height:160px;object-fit:contain;background:#fff;border-radius:20px;margin:0 auto 12px}
.ken-dau-nho{position:absolute;right:14px;top:76px;width:64px;height:64px;border-radius:10px;margin:0}
.ken-phong{overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
.ken-phong .ken-nv-to{width:85%;height:85%;transform-origin:50% 85%}
.kp-bong-chan{position:absolute;bottom:4%;width:55%;height:8%;border-radius:50%;background:#020a28aa}
.ken-phong[data-tt=noi] .ken-nv-to{animation:kenBanNoi .65s ease-in-out infinite!important}
.ken-phong[data-tt=nghe] .ken-nv-to,.ken-phong[data-tt=ghi] .ken-nv-to{animation:kenBanNghe 2.6s ease-in-out infinite!important}
.ken-phong[data-tt=nghi] .ken-nv-to{animation:kenBanNghi 2s ease-in-out infinite!important}
[data-tt=noi] .kp-bong-chan{animation:kenBongChan .65s ease-in-out infinite}
.ken-hinh{display:flex;align-items:center;gap:12px;justify-content:center;flex-shrink:0;animation:kenHinh .25s ease-out}
.ken-hinh span{font-size:96px;line-height:1.1}.ken-hinh b{font-size:22px;color:#ffe45c}
.ken-phong .ken-sua:not([hidden]){display:flex!important}.ken-phong [hidden]{display:none!important}
.ken-phong .ken-bong{flex:1 0 auto;min-height:80px;overflow-wrap:anywhere}
.ken-phong .ken-sua,.ken-phong .ken-goiy,.kp-top,.ken-dk{flex-shrink:0;box-sizing:border-box}
.ken-phong .kp-san{flex-shrink:0;width:min(40vw,190px)}.ken-phong .ken-song{height:32px;flex-shrink:0}
.kp-chip{text-transform:none}.ken-trang button,.ken-trang a{touch-action:manipulation}
.ken-trang :focus-visible{outline:3px solid #ffe45c;outline-offset:4px}.ken-trang button:hover{filter:brightness(1.15)}
.ken-trang h1{text-wrap:balance}.ken-trang #dh{font-variant-numeric:tabular-nums}
@keyframes kenBanNoi{0%,100%{transform:translateY(0) rotate(-3deg) scale(1.02,.98)}50%{transform:translateY(-10px) rotate(3deg) scale(.98,1.03)}}
@keyframes kenBanNghe{0%,100%{transform:rotate(-5deg) scale(1)}50%{transform:rotate(-2deg) scale(1.025)}}
@keyframes kenBanNghi{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes kenBongChan{50%{transform:scaleX(.8);opacity:.6}}
@keyframes kenHinh{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}
@media(max-width:600px){.ken-dau:not(.ken-dau-nho){width:110px;height:110px}.ken-nv .ken-the img{width:96px;height:96px}.ken-hinh span{font-size:80px}}
@media(prefers-reduced-motion:reduce){.ken-phong .ken-nv-to,.ken-phong[data-tt=noi] .ken-nv-to,.ken-phong[data-tt=nghe] .ken-nv-to,.ken-phong[data-tt=ghi] .ken-nv-to,.ken-phong[data-tt=nghi] .ken-nv-to,.ken-trang *{animation:none!important;transition:none!important}}
/* Keep the picture beside the current reply, with controls below. */
.ken-phong .ken-bong{flex:0 0 auto}.ken-phong .ken-dk{margin-top:auto}.ken-hinh{margin:10px 0}.ken-phong .ken-goiy{margin-bottom:8px}
.ken-loi-hinh{display:flex;align-items:center;gap:12px;width:100%;max-width:560px;flex-shrink:0;min-width:0}.ken-loi-hinh .ken-bong{flex:1;min-width:0;width:auto}.ken-loi-hinh .ken-hinh{flex-direction:column;gap:4px;max-width:120px;overflow-wrap:anywhere}

/* The image and its mouth share the same square and every transform. */
.ken-roi{position:relative;display:inline-block;width:85%;aspect-ratio:1;flex-shrink:0;transform-origin:50% 85%}
.ken-phong .ken-roi .ken-nv-to{display:block;width:100%;height:100%;animation:none!important;transform:none}
.ken-phong[data-tt=noi] .ken-roi{animation:kenBuoc 2s ease-in-out infinite}
.ken-phong[data-tt=nghe] .ken-roi,.ken-phong[data-tt=ghi] .ken-roi{animation:kenBanNghe 2.6s ease-in-out infinite}
.ken-phong[data-tt=nghi] .ken-roi{animation:kenBanNghi 2s ease-in-out infinite}
.ken-phong .ken-roi.ken-khen{animation:kenKhen .65s ease-out}
.ken-roi-the{width:110px;height:110px}.ken-nv .ken-roi-the img{display:block;width:100%;height:100%}
@keyframes kenBuoc{0%,100%{transform:translate(-12px,0) rotate(-3deg)}25%,75%{transform:translate(0,-10px) rotate(0)}50%{transform:translate(12px,0) rotate(3deg)}}
@keyframes kenKhen{0%,100%{transform:translateY(0)}45%{transform:translateY(-30px) rotate(5deg)}}
@media(max-width:600px){.ken-roi-the{width:96px;height:96px}}
@media(prefers-reduced-motion:reduce){.ken-phong .ken-roi{animation:none!important;transform:none!important}}

/* Mesh and fallback share a stable square; WebGL owns all deformation. */
.ken-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.ken-canvas[hidden]{display:none}
.ken-webgl>img{visibility:hidden}
.ken-phong .ken-roi.ken-webgl{animation:none!important;transform:none!important}
