.chua3d{-webkit-user-select:none;user-select:none;touch-action:none;background:#1c1020;border-radius:1rem;height:min(82vh,760px);min-height:460px;position:relative;overflow:hidden}.chua3d.is-fullscreen{z-index:60;border-radius:0;width:100vw;height:100dvh;min-height:100dvh;position:fixed;inset:0}.chua3d__stage,.chua3d__canvas{width:100%;height:100%;display:block;position:absolute;inset:0}.chua3d__bubbles{pointer-events:none;position:absolute;inset:0;overflow:hidden}.chua3d__bubble{color:#5a2a14;white-space:nowrap;background:#fffaf0;border-radius:1rem;padding:.3rem .65rem;font-size:.8rem;transition:opacity .3s;position:absolute;top:0;left:0;box-shadow:0 2px 8px #0000004d}.chua3d__bubble:after{content:"";border:6px solid #0000;border-top-color:#fffaf0;border-bottom:0;position:absolute;bottom:-6px;left:50%;transform:translate(-50%)}.chua3d__hud{pointer-events:none;z-index:10;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex;position:absolute;top:.7rem;left:.85rem;right:.85rem}.chua3d__hud-group{pointer-events:auto;flex-wrap:wrap;align-items:center;gap:.45rem;display:flex}.chua3d__title{color:#f6d27a;text-shadow:0 1px 4px #000;padding:0 .25rem;font-family:Georgia,serif;font-size:1.1rem;font-weight:700}.chua3d__pill{color:#ffe9b5;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer;background:#180e08c7;border:1px solid #e2b04a8c;border-radius:999px;align-items:center;gap:.35rem;padding:.38rem .8rem;font-size:.8rem;font-weight:600;text-decoration:none;display:inline-flex}.chua3d__pill:hover{background:#301a0ee6;border-color:#ffd76a}.chua3d__pill--gate{color:#fff2c2;background:#6e1610db;border-color:#f5c35abf}.chua3d__pill--aura{color:#fff2b2;background:linear-gradient(135deg,#582a0ad9,#281206e0);border-color:#ffd764b8;box-shadow:0 0 12px #ffc84638}.chua3d__icon{pointer-events:auto;cursor:pointer;background:#140c08b8;border:1px solid #e2b04a73;border-radius:50%;width:40px;height:40px;font-size:1.1rem}.chua3d__hint{text-align:center;color:#fbe6c2;text-shadow:0 1px 4px #000;pointer-events:none;z-index:5;width:100%;font-size:.76rem;transition:opacity 1s;position:absolute;top:3.6rem}.chua3d__joy{z-index:10;background:#ffffff1f;border:2px solid #ffffff4d;border-radius:50%;width:120px;height:120px;display:none;position:absolute;bottom:1.2rem;left:1.2rem}.chua3d__knob{background:#ffe6b4b3;border-radius:50%;width:52px;height:52px;margin:-26px;position:absolute;top:50%;left:50%}@media (pointer:coarse){.chua3d__joy{display:block}}.chua3d__action{color:#4a1a08;z-index:12;cursor:pointer;background:linear-gradient(#f6c860,#d9902a);border-radius:2rem;min-width:140px;min-height:60px;padding:0 1.4rem;font-size:1.02rem;font-weight:700;animation:1.6s infinite c3pulse;position:absolute;bottom:1.4rem;right:1.2rem;box-shadow:0 4px 14px #00000073}@keyframes c3pulse{50%{transform:scale(1.06)}}.chua3d__toast{color:#ffe9a8;text-align:center;z-index:15;background:#280a05e0;border:1px solid #f0c45a8c;border-radius:1rem;max-width:90%;padding:.5rem 1.1rem;font-size:.88rem;position:absolute;top:5rem;left:50%;transform:translate(-50%)}.chua3d__modal{z-index:30;background:#0a050f8c;place-items:center;padding:1rem;display:grid;position:absolute;inset:0}.chua3d__modal[hidden],.chua3d__action[hidden],.chua3d__toast[hidden],.chua3d__slip[hidden]{display:none}.chua3d__card{color:#4a2a14;text-align:center;background:#fff8ec;border:2px solid #d9a441;border-radius:1.2rem;flex-direction:column;gap:.6rem;width:min(100%,360px);padding:1.2rem;display:flex}.chua3d__h{color:#8b1a14;font-family:Georgia,serif;font-size:1.35rem}.chua3d__p{font-size:.9rem}.chua3d__small{color:#8a6a50;font-size:.72rem}.chua3d__input{color:#3a2010;background:#fff;border:1px solid #d9a441;border-radius:.6rem;width:100%;padding:.55rem .7rem;font-size:1rem}.chua3d__btn{color:#ffe9a8;background:#8b1a14;border-radius:.8rem;flex:1;min-height:48px;padding:0 1.2rem;font-weight:700}.chua3d__link{color:#8b1a14;min-height:40px;font-size:.9rem;text-decoration:underline}.chua3d__row{text-align:left;border:0;flex-wrap:wrap;justify-content:center;gap:.6rem;font-size:.85rem;display:flex}.chua3d__result{color:#8b1a14;min-height:1.4em;font-weight:700}.chua3d__ring{background:radial-gradient(#5a2a14,#2a1208);border-radius:50%;place-items:center;width:170px;height:170px;margin:0 auto;font-size:2.6rem;display:grid;position:relative}.chua3d__ring-target{border:4px solid #f0c45a;border-radius:50%;position:absolute;inset:42px}.chua3d__ring-shrink{opacity:0;border:4px solid #fff3c4;border-radius:50%;position:absolute;inset:0;box-shadow:0 0 12px #ffe7a3}.chua3d__tube{background:#b5852a;border-radius:1rem;place-items:center;width:110px;height:150px;margin:0 auto;font-size:3rem;display:grid;position:relative;overflow:hidden}.chua3d__tube.is-shaking{animation:.12s infinite c3shake}@keyframes c3shake{25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}.chua3d__tube-fill{background:#8b1a1459;width:100%;height:0;position:absolute;bottom:0;left:0}.chua3d__slip{color:#ffe9a8;background:#c0392b;border-radius:.6rem;padding:.9rem;font-family:Georgia,serif;animation:.5s ease-out c3drop}@keyframes c3drop{0%{opacity:0;transform:translateY(-30px)rotate(-6deg)}}.chua3d.is-shaking-screen{animation:.1s 5 c3shake}.c3-chat{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:16;pointer-events:auto;background:#140c08d1;border:1px solid #ebbe5f73;border-radius:.85rem;flex-direction:column;gap:.4rem;width:min(360px,100vw - 1.7rem);padding:.55rem .65rem;display:flex;position:absolute;bottom:.85rem;left:.85rem}.c3-chat[hidden],.c3-chat-reopen[hidden]{display:none}.c3-chat__head{justify-content:space-between;align-items:center;display:flex}.c3-chat__title{color:#ffe59e;font-size:.78rem;font-weight:700}.c3-chat__close{color:#ffe8b0;cursor:pointer;background:#ffe6a01f;border:1px solid #ffdc8259;border-radius:999px;padding:.15rem .55rem;font-size:.72rem}.c3-chat__log{color:#f6ead4;flex-direction:column;gap:.25rem;max-height:92px;padding-right:.2rem;font-size:.76rem;display:flex;overflow-y:auto}.c3-chat__item{word-break:break-word;line-height:1.35}.c3-chat__item b{color:#ffd475}.c3-chat__item--sys{color:#d9c49e;font-style:italic}.c3-chat__form{gap:.38rem;display:flex}.c3-chat__input{color:#fff6e5;background:#0c0704c7;border:1px solid #ebbe5f7a;border-radius:999px;outline:none;flex:1;min-width:0;padding:.36rem .75rem;font-size:.78rem}.c3-chat__input:focus{border-color:#ffd76a}.c3-chat__send{color:#fff7e2;cursor:pointer;background:linear-gradient(135deg,#d89b38,#9c5b16);border:1px solid #ffe18c8c;border-radius:999px;padding:0 .85rem;font-size:.76rem;font-weight:700}.c3-chat-reopen{color:#ffe9b5;z-index:16;cursor:pointer;pointer-events:auto;background:#180e08d6;border:1px solid #ebbe5f99;border-radius:999px;padding:.42rem .85rem;font-size:.78rem;font-weight:600;position:absolute;bottom:.85rem;left:.85rem}@media (pointer:coarse){.c3-chat,.c3-chat-reopen{width:min(300px,100vw - 10.4rem);left:9.4rem}}
