/* APPS WISE Games V70.102 — UX layer: custom modals, mascot assistant, theme selector and classic light theme */
.wise-theme-picker{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.03);color:var(--text-main,#f6f1ea)}
.wise-theme-picker select{background:transparent;border:0;color:inherit;font:inherit;min-width:132px;outline:none}
.wise-theme-picker option{color:#111}
#empty-workspace .wh-quickcard .wh-next-wrap{display:grid!important;place-items:center!important;min-width:72px;width:72px;height:72px;padding:0!important}
#empty-workspace .wh-quickcard .wh-next{display:grid!important;place-items:center!important;width:56px;height:56px;min-width:56px;border-radius:999px;border:1px solid rgba(234,156,77,.44);background:radial-gradient(circle at 50% 44%,rgba(255,205,131,.28),rgba(228,147,61,.08));box-shadow:0 0 0 4px rgba(232,152,67,.06),0 14px 28px rgba(0,0,0,.16);position:relative;overflow:hidden}
#empty-workspace .wh-next svg{width:24px!important;height:24px!important;display:block!important;margin:0 auto!important;transform:translateX(.5px)!important}
#empty-workspace .wh-quickcard:hover .wh-next{transform:translateY(-1px) scale(1.06);box-shadow:0 0 0 7px rgba(232,152,67,.10),0 18px 30px rgba(226,143,55,.20)}
#empty-workspace .wh-quickcard:hover .wh-next svg{transform:translateX(2.5px)!important}
.wise-ux-layer{position:fixed;inset:0;pointer-events:none;z-index:2000000;font-family:Inter,'Segoe UI',Arial,sans-serif}
.wise-ux-layer *{box-sizing:border-box}
.wise-ux-modal-backdrop{position:absolute;inset:0;background:rgba(4,8,14,.58);backdrop-filter:blur(6px);display:grid;place-items:center;padding:18px;pointer-events:auto;animation:wiseUxFade .22s ease both}
.wise-ux-modal-card{width:min(560px,92vw);background:linear-gradient(180deg,#232628 0%,#1a1c1f 100%);border:1px solid rgba(255,255,255,.08);border-radius:20px;box-shadow:0 28px 80px rgba(0,0,0,.42);overflow:hidden;color:#f5efe8;transform-origin:50% 50%;animation:wiseUxCard .30s cubic-bezier(.2,.85,.22,1) both}
body.wise7039-light .wise-ux-modal-card{background:linear-gradient(180deg,#fff 0%,#f6f8fb 100%);color:#22313d;border-color:#d8e0e7;box-shadow:0 26px 72px rgba(50,76,104,.20)}
.wise-ux-modal-head{display:flex;align-items:center;gap:14px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.07)}
body.wise7039-light .wise-ux-modal-head{border-bottom-color:#e1e8ee}
.wise-ux-modal-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:rgba(243,161,76,.12);color:#f3a14c;font-size:22px;flex:none}
.wise-ux-modal-title{font-size:20px;font-weight:800;margin:0}
.wise-ux-modal-sub{font-size:12px;opacity:.74;margin-top:4px}
.wise-ux-modal-close{margin-left:auto;border:0;background:rgba(255,255,255,.05);width:38px;height:38px;border-radius:999px;color:inherit;cursor:pointer}
.wise-ux-modal-body{padding:18px 20px 8px;color:inherit;line-height:1.65;white-space:pre-line}
.wise-ux-modal-actions{display:flex;gap:12px;justify-content:flex-end;padding:18px 20px 22px}
.wise-ux-btn{border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05);color:inherit;padding:12px 18px;cursor:pointer;font-weight:700;min-width:120px}
.wise-ux-btn.primary{background:linear-gradient(180deg,#d69143 0%,#bc7834 100%);border-color:#cc8a43;color:#fff}
body.wise7039-light .wise-ux-btn.primary{background:linear-gradient(180deg,#3d81f0 0%,#2d6cdf 100%);border-color:#2d6cdf}
.wise-ux-btn:hover{transform:translateY(-1px)}
.wise-ux-toast-stack{position:absolute;right:18px;top:18px;display:flex;flex-direction:column;gap:12px;align-items:flex-end;pointer-events:none}
.wise-ux-toast{pointer-events:auto;display:flex;gap:14px;align-items:flex-start;width:min(420px,92vw);padding:15px 16px;border-radius:18px;background:linear-gradient(180deg,rgba(32,36,39,.98),rgba(18,20,22,.98));color:#f7f3ee;border:1px solid rgba(255,255,255,.09);box-shadow:0 20px 48px rgba(0,0,0,.34);animation:wiseUxToast .34s cubic-bezier(.2,.8,.23,1) both}
body.wise7039-light .wise-ux-toast{background:linear-gradient(180deg,#ffffff,#f6f8fb);color:#23323f;border-color:#d7e0e8;box-shadow:0 18px 48px rgba(47,71,96,.18)}
.wise-ux-toast-icon{width:40px;height:40px;border-radius:12px;background:rgba(243,161,76,.13);display:grid;place-items:center;color:#f3a14c;flex:none;font-size:18px}
.wise-ux-toast strong{display:block;font-size:14px;margin-bottom:2px}.wise-ux-toast p{margin:0;font-size:12px;line-height:1.5;color:inherit;opacity:.9}
.wise-ux-timer{width:40px;height:40px;position:relative;margin-left:auto;flex:none}
.wise-ux-timer svg{width:40px;height:40px;transform:rotate(-90deg)}
.wise-ux-timer .bg{stroke:rgba(255,255,255,.12);stroke-width:3;fill:none}
.wise-ux-timer .fg{stroke:#f3a14c;stroke-width:3;fill:none;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0;animation:wiseUxCountdown linear forwards}
body.wise7039-light .wise-ux-timer .bg{stroke:#d7e0e8}
body.wise7039-light .wise-ux-timer .fg{stroke:#2d6cdf}
.wise-ux-timer span{position:absolute;inset:0;display:grid;place-items:center;font-size:11px;font-weight:700}
.wise-buddy{position:fixed;left:18px;bottom:18px;z-index:1600000;display:flex;align-items:flex-end;gap:12px;transition:transform .35s ease,opacity .35s ease}
.wise-buddy.hidden{transform:translateY(120px);opacity:0;pointer-events:none}
.wise-buddy-tab{position:fixed;left:18px;bottom:14px;z-index:1599999;display:none;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:linear-gradient(180deg,#25292e,#16191c);border:1px solid rgba(255,255,255,.09);color:#f5efe7;cursor:pointer;box-shadow:0 16px 40px rgba(0,0,0,.28)}
body.wise7039-light .wise-buddy-tab{background:linear-gradient(180deg,#fff,#f5f8fb);color:#1d3040;border-color:#d8e0e8;box-shadow:0 16px 40px rgba(48,72,98,.18)}
.wise-buddy-tab.show{display:flex}
.wise-buddy-shell{position:relative;display:grid;place-items:end}
.wise-buddy-bubble{max-width:300px;min-width:190px;padding:14px 16px;border-radius:18px 18px 18px 4px;background:linear-gradient(180deg,#292d31,#171a1d);border:1px solid rgba(255,255,255,.09);color:#f5f0ea;box-shadow:0 18px 42px rgba(0,0,0,.30);margin-bottom:16px;line-height:1.5;font-size:13px;opacity:0;transform:translateY(8px) scale(.98);transition:opacity .22s,transform .22s;pointer-events:none}
body.wise7039-light .wise-buddy-bubble{background:linear-gradient(180deg,#fff,#f5f8fb);color:#27333e;border-color:#d8e0e8;box-shadow:0 16px 40px rgba(51,76,104,.18)}
.wise-buddy-bubble.show{opacity:1;transform:none}.wise-buddy-bubble b{display:block;margin-bottom:4px;font-size:12px;color:#f3a14c}
body.wise7039-light .wise-buddy-bubble b{color:#2d6cdf}
.wise-buddy-card{width:88px;height:102px;border-radius:28px 28px 26px 26px;background:linear-gradient(180deg,#fff 0%,#eef3f8 100%);border:1px solid #cfdae5;box-shadow:0 22px 52px rgba(0,0,0,.22);position:relative;overflow:hidden;cursor:pointer;transform:translate3d(0,0,0)}
.wise-buddy-card::before{content:"";position:absolute;inset:9px 11px auto 11px;height:12px;border-radius:999px;background:linear-gradient(90deg,#ffd59e,#f3a14c 65%,#ffcf90)}
.wise-buddy-face{position:absolute;left:14px;right:14px;top:26px;height:38px;border-radius:20px;background:linear-gradient(180deg,#213044,#11202e);display:flex;align-items:center;justify-content:center;gap:12px}
.wise-buddy-eye{width:10px;height:10px;border-radius:999px;background:#8fe2ff;box-shadow:0 0 12px rgba(143,226,255,.9)}
.wise-buddy-mouth{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);width:28px;height:8px;border-radius:0 0 16px 16px;border:3px solid #243748;border-top:0}
.wise-buddy-arm,.wise-buddy-arm2{position:absolute;top:58px;width:18px;height:50px;border-radius:16px;background:linear-gradient(180deg,#eef3f8,#cfd9e3);border:1px solid #ccd7e1}
.wise-buddy-arm{left:-8px;transform-origin:50% 8px;transform:rotate(14deg)}.wise-buddy-arm2{right:-8px;transform-origin:50% 8px;transform:rotate(-16deg)}
.wise-buddy-leg,.wise-buddy-leg2{position:absolute;bottom:-10px;width:18px;height:34px;border-radius:16px;background:linear-gradient(180deg,#eef3f8,#cfd9e3);border:1px solid #ccd7e1}
.wise-buddy-leg{left:22px}.wise-buddy-leg2{right:22px}
.wise-buddy-tools{position:absolute;right:-12px;top:-10px;display:flex;flex-direction:column;gap:6px}
.wise-buddy-tools button{width:30px;height:30px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,#2a2e33,#1a1d21);color:#f6f1ea;cursor:pointer;box-shadow:0 8px 18px rgba(0,0,0,.25)}
body.wise7039-light .wise-buddy-tools button{background:linear-gradient(180deg,#fff,#eef3f8);color:#27333e;border-color:#d5dee7;box-shadow:0 8px 18px rgba(50,76,104,.18)}
.wise-buddy-shadow{position:absolute;left:10px;right:10px;bottom:-8px;height:14px;border-radius:50%;background:radial-gradient(circle,rgba(0,0,0,.22),transparent 70%)}
@keyframes wiseUxFade{from{opacity:0}to{opacity:1}} @keyframes wiseUxCard{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}} @keyframes wiseUxToast{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:none}} @keyframes wiseUxCountdown{from{stroke-dashoffset:0}to{stroke-dashoffset:100}}
@media (prefers-reduced-motion:reduce){.wise-ux-modal-backdrop,.wise-ux-modal-card,.wise-ux-toast,.wise-buddy,.wise-buddy-bubble{animation:none!important;transition:none!important}}
