/* Dex, the Dexider Studios website assistant: black liquid-glass panel, white type, gold accents. */
@font-face{font-family:'Questrial';src:url('/fonts/questrial-latin-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
:root{--dex-gold:#b2b7be;--dex-gold-2:#969ca5;--dex-line:rgba(255,255,255,.14);--dex-ui:'Questrial','Montserrat',system-ui,-apple-system,sans-serif;--dex-serif:'Playfair Display',Georgia,'Times New Roman',serif}

/* Launcher */
.dex-launch{position:fixed;z-index:95;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 7px;border-radius:30px;border:1px solid rgba(178,183,190,.55);background:linear-gradient(160deg,rgba(34,34,38,.66),rgba(6,6,8,.8));-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);color:#fff;font:400 15px/1 var(--dex-ui);letter-spacing:.3px;text-decoration:none;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 0 22px rgba(178,183,190,.18),0 12px 32px rgba(0,0,0,.5);transition:transform .25s ease,box-shadow .25s ease}
.dex-launch:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 30px rgba(178,183,190,.3),0 16px 38px rgba(0,0,0,.55)}
.dex-launch img{width:44px;height:44px;flex:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.5))}
.dex-launch .dex-dot{width:8px;height:8px;border-radius:50%;background:#7ee2a8;box-shadow:0 0 8px #7ee2a8;margin-left:-2px}
html.dex-open .dex-launch{opacity:0;pointer-events:none;transform:scale(.9)}

/* Panel */
.dex{position:fixed;z-index:96;inset:auto calc(18px + env(safe-area-inset-right,0px)) calc(18px + env(safe-area-inset-bottom,0px)) auto;margin:0;padding:0;width:410px;max-width:calc(100vw - 36px);height:min(660px,calc(100dvh - 36px));max-height:none;border-radius:32px;border:1px solid rgba(255,255,255,.17);color:#fff;font:400 15px/1.5 var(--dex-ui);
 background:linear-gradient(165deg,rgba(40,40,46,.55) 0%,rgba(12,12,14,.68) 45%,rgba(4,4,6,.78) 100%);-webkit-backdrop-filter:blur(28px) saturate(175%);backdrop-filter:blur(28px) saturate(175%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(255,255,255,.03),inset 0 -18px 40px rgba(0,0,0,.25),0 30px 90px rgba(0,0,0,.6);overflow:hidden;flex-direction:column}
.dex[open]{display:flex;animation:dex-in .32s cubic-bezier(.2,.8,.2,1)}
.dex:not([open]){display:none}
.dex::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 60% at 15% -10%,rgba(255,255,255,.16),transparent 55%),radial-gradient(80% 50% at 100% 110%,rgba(178,183,190,.1),transparent 60%)}
.dex::backdrop{background:transparent}
.dex.dex-wide{width:min(780px,calc(100vw - 36px));height:calc(100dvh - 36px)}
@keyframes dex-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}

/* Top bar */
.dex-top{position:relative;display:flex;align-items:center;gap:10px;padding:18px 18px 8px}
.dex-pill{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 15px;margin-left:auto;border-radius:22px;background:rgba(255,255,255,.92);color:#0b0b0d;font:400 15px/1 var(--dex-ui);text-decoration:none;box-shadow:inset 0 -1px 0 rgba(0,0,0,.12),0 4px 14px rgba(0,0,0,.25);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34%;font-size:14px}
.dex-pill:hover{background:#fff}
.dex-tools{display:flex;align-items:center;height:42px;padding:0 4px;border-radius:22px;background:rgba(255,255,255,.08);border:1px solid var(--dex-line)}
.dex-tools button,.dex-min{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.dex-tools button+button{border-left:1px solid var(--dex-line);border-radius:0 50% 50% 0}
.dex-tools button:hover,.dex-min:hover{background:rgba(255,255,255,.12)}
.dex-min{width:42px;height:42px;background:rgba(255,255,255,.08);border:1px solid var(--dex-line)}

/* Conversation */
.dex-body{position:relative;flex:1;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16px,#000 calc(100% - 10px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 16px,#000 calc(100% - 10px),transparent 100%);overflow-y:auto;overscroll-behavior:contain;padding:8px 18px 14px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}
.dex-hello{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;margin:2px 2px 16px}
.dex-hello .dex-logo{width:min(260px,78%);height:auto;margin:6px 0 4px;background:transparent;flex:none;filter:drop-shadow(0 8px 22px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(178,183,190,.18))}
.dex.dex-wide .dex-hello .dex-logo{width:320px}
.dex-hello h2{margin:0;font:500 26px/1.15 var(--dex-serif);letter-spacing:-.3px;color:#fff}
.dex-hello h2 em{font-style:italic;color:var(--dex-gold)}
.dex-hello p{margin:6px 0 0;color:rgba(255,255,255,.78);font-size:14.5px}
.dex-cards{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 10px;margin:0 -18px 8px;padding-left:18px;padding-right:18px;scrollbar-width:none}
.dex-cards::-webkit-scrollbar{display:none}
.dex-card{flex:0 0 150px;scroll-snap-align:start;display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:20px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(170deg,rgba(255,255,255,.12),rgba(255,255,255,.03));color:#fff;text-align:left;font:inherit;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.18);transition:transform .2s ease,border-color .2s ease}
.dex-card:hover{transform:translateY(-2px);border-color:rgba(178,183,190,.55)}
.dex-card img{width:100%;aspect-ratio:1.35;object-fit:contain;border-radius:14px;background:radial-gradient(circle at 50% 40%,rgba(178,183,190,.16),rgba(0,0,0,.25))}
.dex-card strong{font-weight:400;font-size:14px;line-height:1.25}
.dex-card .dex-price{color:var(--dex-gold);font-size:13px}
.dex-card .dex-desc{color:rgba(255,255,255,.65);font-size:12px;line-height:1.35}
.dex-card .dex-cta{margin-top:auto;padding-top:4px;font-size:12px;color:#fff;opacity:.9}
.dex-card.dex-done{border-color:rgba(126,226,168,.6)}
.dex-msgs .dex-cards{margin-top:4px}
.dex-chips{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 14px}
.dex-chip{padding:9px 14px;border-radius:18px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;font:400 13.5px/1.2 var(--dex-ui);cursor:pointer}
.dex-chip:hover{border-color:rgba(178,183,190,.6);background:rgba(178,183,190,.1)}
.dex-msg{margin:0 0 12px;max-width:88%;white-space:pre-wrap;overflow-wrap:anywhere}
.dex-msg p{margin:0 0 6px}.dex-msg p:last-child{margin:0}
.dex-msg ul{margin:4px 0;padding-left:18px}.dex-msg li{margin:2px 0}
.dex-msg-user{margin-left:auto;padding:10px 15px;border-radius:20px 20px 6px 20px;background:rgba(255,255,255,.9);color:#0b0b0d}
.dex-msg-dex{color:#fff;padding:2px 2px}
.dex-msg-error{color:#ffd2c4}
.dex-links{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 14px}
.dex-link{padding:9px 15px;border-radius:18px;border:1px solid rgba(178,183,190,.6);background:rgba(178,183,190,.12);color:#fff;font:400 13.5px/1.2 var(--dex-ui);text-decoration:none;cursor:pointer}
.dex-link:hover{background:rgba(178,183,190,.22)}
.dex-typing{display:inline-flex;gap:5px;padding:8px 2px 14px}
.dex-typing i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.75);animation:dex-bounce 1.1s infinite ease-in-out}
.dex-typing i:nth-child(2){animation-delay:.15s}.dex-typing i:nth-child(3){animation-delay:.3s}
@keyframes dex-bounce{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-5px);opacity:1}}

/* Input with gold glow */
.dex-form{position:relative;display:flex;align-items:flex-end;gap:8px;margin:0 14px;padding:8px 8px 8px 20px;border-radius:30px;border:1px solid rgba(178,183,190,.6);background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.04));box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 0 4px rgba(178,183,190,.07),0 0 26px rgba(178,183,190,.2);transition:box-shadow .25s ease,border-color .25s ease}
.dex-form:focus-within{border-color:rgba(196,199,204,.95);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 0 4px rgba(178,183,190,.14),0 0 34px rgba(178,183,190,.38)}
.dex-form textarea{flex:1;box-sizing:border-box;min-height:44px;max-height:120px;padding:11px 0;overflow-y:hidden;scrollbar-width:none;-webkit-appearance:none;appearance:none;border:0;outline:0;resize:none;background:transparent;color:#fff;font:400 16px/1.4 var(--dex-ui)}
.dex-form textarea::placeholder{color:rgba(255,255,255,.6)}
.dex-send{flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:linear-gradient(140deg,#cdd0d5,var(--dex-gold-2));color:#0b0b0d;cursor:pointer;box-shadow:inset 0 1px 1px rgba(255,255,255,.7),0 4px 12px rgba(0,0,0,.35)}
.dex-send:disabled{opacity:.45;cursor:default}
.dex-fine{margin:8px 20px 14px;color:rgba(255,255,255,.5);font-size:11px;text-align:center}

.dex :is(a,button,textarea):focus-visible,.dex-launch:focus-visible{outline:2px solid #dadde0;outline-offset:3px}
.dex-form textarea:focus-visible{outline:0}

@media(max-width:560px){
 .dex,.dex.dex-wide{inset:auto 8px calc(8px + env(safe-area-inset-bottom,0px)) 8px;width:auto;max-width:none;height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:28px}
 .dex-expand{display:none!important}.dex-tools button+button{border-left:0;border-radius:50%}
 .dex-launch{padding-right:16px;height:52px}
 .dex-launch img{width:38px;height:38px}
}
/* Phones and small tablets: level with the back-to-top button on the opposite side (matches main, Nov 4) */
@media(max-width:767px){.dex-launch{bottom:calc(14px + env(safe-area-inset-bottom,0px));right:calc(16px + env(safe-area-inset-right,0px))}}
@media(prefers-reduced-motion:reduce){.dex[open]{animation:none}.dex-launch,.dex-card{transition:none}.dex-typing i{animation:none;opacity:.8}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.dex,.dex-launch{background:#0c0c0f}}

/* Dex himself: header identity, launcher float, welcoming tilt (Nov 5, 2026) */
.dex-id{display:flex;align-items:center;gap:10px;min-width:0}
.dex-face{width:46px;height:46px;flex:none;object-fit:contain;filter:drop-shadow(0 4px 10px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(178,183,190,.25));transform-origin:50% 80%}
.dex-id-text{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.dex-id-text strong{font:400 17px/1.1 var(--dex-ui);color:#fff;letter-spacing:.2px}
.dex-ai{margin-top:3px;align-self:flex-start;padding:2px 8px;border-radius:10px;border:1px solid rgba(178,183,190,.5);background:rgba(178,183,190,.1);color:var(--dex-gold);font-size:10.5px;letter-spacing:.6px;text-transform:uppercase;white-space:nowrap}
.dex-face.dex-hi{animation:dex-hi .95s cubic-bezier(.3,1.4,.5,1) .15s both}
@keyframes dex-hi{0%{transform:rotate(0) scale(.9)}35%{transform:rotate(-12deg) scale(1.06)}65%{transform:rotate(7deg) scale(1)}100%{transform:rotate(0) scale(1)}}
.dex-launch{padding-left:4px}
.dex-launch img{width:50px;height:50px;object-fit:contain;animation:dex-float 3.6s ease-in-out infinite;transform-origin:50% 80%}
@keyframes dex-float{0%,100%{transform:translateY(1px) rotate(-1.5deg)}50%{transform:translateY(-4px) rotate(1.5deg)}}
@media(max-width:560px){.dex-top{gap:8px;padding:14px 14px 6px}.dex-face{width:40px;height:40px}.dex-pill{height:36px;padding:0 12px;font-size:13px;max-width:30%}.dex-launch img{width:46px;height:46px}}
@media(max-width:360px){.dex-pill{display:none}}
@media(prefers-reduced-motion:reduce){.dex-launch img,.dex-face.dex-hi{animation:none}}
.dex-cards[hidden],.dex-chips[hidden],.dex [hidden]{display:none!important}
.dex-form textarea::-webkit-scrollbar{display:none}.dex-form textarea.dex-tall{overflow-y:auto}
/* Dex "thinking" while an answer loads (replaces the typing dots) */
.dex-thinking{position:relative;display:inline-grid;place-items:center;width:64px;height:64px;margin:2px 0 14px}
.dex-thinking img{position:relative;z-index:1;width:52px;height:52px;object-fit:contain;transform-origin:50% 85%;filter:drop-shadow(0 4px 10px rgba(0,0,0,.55));animation:dex-think 1.6s ease-in-out infinite}
.dex-glow{position:absolute;inset:6px;border-radius:50%;background:radial-gradient(circle,rgba(178,183,190,.45),transparent 68%);animation:dex-pulse 1.6s ease-in-out infinite}
@keyframes dex-think{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-5px) rotate(6deg)}}
@keyframes dex-pulse{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}
@media(prefers-reduced-motion:reduce){.dex-thinking img,.dex-glow{animation:none}.dex-glow{opacity:.6}}
