/* Gul prototype shell: the app sits on a calm cream desk, scaled to fit. */
:root{--bg:#EFE6D8;--ink:#2B2340;--muted:#5E5873;--card:#FFFDF8;--line:#E2D6C2;--go:#3F7D4E;--sun:#F6B73C}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Poppins,system-ui,sans-serif;display:flex;flex-direction:column;overflow:hidden}
button{font:inherit;color:inherit}
.bar{display:flex;align-items:center;gap:16px;padding:10px clamp(12px,2vw,24px);flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.brand span{display:flex;flex-direction:column;line-height:1.1}
.brand strong{font-size:18px}.brand small{font-size:12px;color:var(--muted)}
.seg{display:flex;gap:4px;background:#E4D9C7;padding:4px;border-radius:999px;margin-inline:auto}
.seg button{white-space:nowrap;border:0;background:transparent;padding:8px 16px;border-radius:999px;cursor:pointer;font-weight:500;min-height:40px}
.seg button[aria-pressed=true]{background:#fff;box-shadow:0 2px 8px rgba(43,35,64,.10)}
.bar-end{display:flex;gap:8px;align-items:center;margin-left:auto}
.ghost{border:1.5px solid var(--line);background:var(--card);padding:8px 14px;border-radius:999px;cursor:pointer;min-height:40px}
.ghost:hover,.seg button:hover{background:#fff}
:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.stage-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:4px clamp(8px,2vw,24px)}
.stage{position:relative;border-radius:22px;overflow:hidden;box-shadow:0 30px 70px rgba(43,35,64,.18),0 0 0 10px #2B2340}
.host{user-select:none;-webkit-user-select:none;position:absolute;left:0;top:0;width:1440px;height:1024px;transform-origin:0 0}
.host>.scr{animation:fade .35s ease}
@keyframes fade{from{opacity:0}to{opacity:1}}
.under{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;padding:10px clamp(12px,2vw,24px) 14px;min-height:64px}
.cap{max-width:760px;text-align:center;color:var(--muted);font-size:14px}
.cap b{color:var(--ink);font-weight:600}
.cap i{display:block;font-size:13px}
.demo{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.demo button{border:1.5px dashed #C9B9A1;background:transparent;border-radius:999px;padding:6px 12px;cursor:pointer;min-height:36px}
.demo button:hover{background:#fff}
.narrow{display:none;margin:0 16px 12px;text-align:center;font-size:13px;color:var(--muted)}
@media (max-width:700px){.seg button{padding:8px 12px;font-size:14px}.seg{order:3;margin:0;width:100%;justify-content:center}.narrow{display:block}.stage{box-shadow:0 0 0 5px #2B2340;border-radius:12px}}

/* ---------- inside the app ---------- */
.host a,.host button{cursor:pointer}
.host [data-go],.host [data-act]{cursor:pointer}
.scr .pop{animation:pop .45s cubic-bezier(.3,1.5,.5,1)}
@keyframes pop{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}
.scr.draw .tb{box-shadow:inset 0 0 0 4px #E9DFD2;transition:transform .15s}
.scr.draw .tb.sel{transform:translateY(-10px);box-shadow:0 0 0 7px #3F7D4E}
.scr.draw .sw.sel{box-shadow:0 0 0 5px #fff,0 0 0 10px #3F7D4E !important}
.scr.draw .sw:not(.sel){box-shadow:inset 0 0 0 3px rgba(0,0,0,.06)}
.scr.draw .mt{background:#fff !important;box-shadow:inset 0 0 0 3px #E9DFD2 !important}
.scr.draw .mt.sel{background:#F6B73C !important;box-shadow:0 0 0 6px #3F7D4E !important}
.scr.draw.locked .toolbar{opacity:.35;pointer-events:none}
.scr.draw.locked .veil{display:block !important}
.scr.draw.locked canvas{pointer-events:none}
.scr .playing{animation:pulse .8s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.08)}}
.scr .mic{animation:pulse 1.6s ease-in-out infinite}
.scr .bars span>span{animation:bar 1s ease-in-out infinite;transform-origin:center}
.scr .bars span>span:nth-child(2){animation-delay:.15s}.scr .bars span>span:nth-child(3){animation-delay:.3s}.scr .bars span>span:nth-child(4){animation-delay:.45s}
@keyframes bar{50%{transform:scaleY(.35)}}
.scr .plane{animation:fly 2.2s ease-in-out forwards}
@keyframes fly{0%{transform:translate(0,0) rotate(-10deg)}60%{transform:translate(520px,-230px) rotate(4deg)}100%{transform:translate(700px,-160px) rotate(12deg);opacity:0}}
.scr .tick{animation:pop .5s 1.6s both cubic-bezier(.3,1.5,.5,1)}
.scr .hint{animation:nudge 1.4s ease-in-out infinite}
@keyframes nudge{50%{transform:translate(-8px,-8px)}}
.scr .seed{animation:drop 1.6s ease-in infinite}
.scr .seed:nth-child(2){animation-delay:.5s}.scr .seed:nth-child(3){animation-delay:1s}
@keyframes drop{0%{transform:translateY(-40px);opacity:0}30%{opacity:1}100%{transform:translateY(120px);opacity:0}}
.scr .stars svg{animation:pop .6s both cubic-bezier(.3,1.5,.5,1)}
.scr .stars svg:nth-child(2){animation-delay:.25s}.scr .stars svg:nth-child(3){animation-delay:.5s}
.scr #tmrbox.low{box-shadow:0 0 0 4px #F7C6C0}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none !important;transition:none !important}}

/* ---------- Design your flower (Maryam's builder) ---------- */
.design .d-back{position:absolute;left:40px;top:36px;width:100px;height:100px;border-radius:50%;background:#F5C85F;display:flex;align-items:center;justify-content:center}
.design .d-title{position:absolute;left:0;right:0;top:44px;margin:0;text-align:center;font-size:52px;font-weight:400;display:flex;align-items:center;justify-content:center;gap:22px}
.design .d-title b{font-weight:700;margin-right:-8px}
.design .d-say{border:0;background:transparent;padding:6px;border-radius:50%}
.design .d-rail{position:absolute;left:8px;top:175px;width:232px;height:720px;background:#E3E3D0;display:flex;flex-direction:column;padding-top:6px}
.design .rail{position:relative;height:118px;border:0;background:transparent;display:flex;align-items:center;justify-content:center}
.design .rail.sel{background:#A3AB78}
.design .rail.sel::after{content:"";position:absolute;right:14px;top:50%;margin-top:-9px;border:9px solid transparent;border-left:12px solid #2B2340}
.design .d-opts{position:absolute;left:240px;top:175px;width:200px;height:720px;background:#E3E3D0;border-radius:0 32px 32px 0;flex-direction:column;justify-content:space-around;align-items:center;padding:16px 0}
.design .opt{width:158px;height:158px;border:0;border-radius:28px;background:transparent;display:flex;align-items:center;justify-content:center;transition:transform .15s}
.design .opt svg{width:130px;height:130px}
.design .opt:hover{transform:scale(1.04)}
.design .opt.sel{background:#fff;box-shadow:0 0 0 5px #3F7D4E}
.design .d-stage{position:absolute;left:560px;top:150px;width:360px;height:552px}
.design #dflower svg{display:block}
.design #dart{position:absolute;left:60px;top:360px;width:240px;height:168px;pointer-events:none}
.design #dart.on{pointer-events:auto;cursor:crosshair;outline:4px dashed rgba(63,125,78,.55);outline-offset:6px;border-radius:12px}
.design .d-colours{position:absolute;left:740px;transform:translateX(-50%);bottom:84px;display:flex;align-items:center;gap:18px;background:#fff;padding:16px 26px;border-radius:999px;box-shadow:0 10px 26px rgba(43,35,64,.12)}
.design .dot{width:66px;height:66px;border-radius:50%;border:0;box-shadow:inset 0 0 0 3px rgba(0,0,0,.08)}
.design .dot.sel{box-shadow:0 0 0 5px #fff,0 0 0 10px #3F7D4E}
.design .tool{width:66px;height:66px;border-radius:50%;border:0;background:#F4EFE6;display:flex;align-items:center;justify-content:center}
.design .tool.sel{background:#F6B73C;box-shadow:0 0 0 5px #3F7D4E}
.design .sep{width:3px;height:56px;background:#E9DFD2;border-radius:2px}
.design .d-next{position:absolute;right:60px;bottom:50px;width:120px;height:120px;border-radius:50%;background:#F5C85F;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 12px rgba(246,183,60,.3);animation:pulse 1.8s ease-in-out infinite}

/* ---------- code and name ---------- */
.who .pic{transition:transform .12s}.who .pic:active{transform:scale(.94)}
.who .shake{animation:shake .5s}
@keyframes shake{20%,60%{transform:translateX(-14px)}40%,80%{transform:translateX(14px)}}
.who .bigmic{width:280px;height:280px;border-radius:50%;background:#F6B73C;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 14px rgba(246,183,60,.4),0 0 0 32px rgba(246,183,60,.18)}
.who .bigmic.playing{animation:pulse 1.4s ease-in-out infinite}
.who .bars{display:flex;align-items:center;gap:9px}.who .bars span{width:13px;border-radius:7px;background:#3F7D4E;animation:bar 1s ease-in-out infinite}
.who .bars span:nth-child(2){animation-delay:.15s}.who .bars span:nth-child(3){animation-delay:.3s}.who .bars span:nth-child(4){animation-delay:.45s}

/* ---------- demo video ---------- */
.watch{position:relative}
.solid{display:inline-flex;align-items:center;gap:8px;border:0;background:#2B2340;color:#fff;padding:9px 18px;border-radius:999px;cursor:pointer;min-height:42px;font-weight:600}
.solid:hover{background:#3d3358}
.menu{position:absolute;right:0;top:calc(100% + 8px);z-index:20;background:#fff;border-radius:18px;box-shadow:0 18px 40px rgba(43,35,64,.18);padding:8px;width:300px;display:flex;flex-direction:column;gap:4px}
.menu button{border:0;background:transparent;text-align:left;padding:12px 14px;border-radius:12px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.menu button:hover,.menu button:focus-visible{background:#F6F0E6}
.menu small{color:var(--muted);font-size:13px;line-height:1.35}
.tour-cursor{position:absolute;left:0;top:0;width:60px;height:60px;z-index:999;pointer-events:none;transition:left .7s cubic-bezier(.4,0,.2,1),top .7s cubic-bezier(.4,0,.2,1);filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}
.tour-cursor.tap::after{content:"";position:absolute;left:-14px;top:-14px;width:56px;height:56px;border-radius:50%;border:5px solid rgba(63,125,78,.8);animation:ring .5s ease-out forwards}
@keyframes ring{from{transform:scale(.3);opacity:1}to{transform:scale(1.4);opacity:0}}
.touring .host{pointer-events:none}
.stage.touring::after{content:"Demo playing";position:absolute;right:16px;top:14px;background:rgba(43,35,64,.75);color:#fff;font-size:22px;padding:6px 14px;border-radius:999px;pointer-events:none}
.host input,.host textarea{user-select:text;-webkit-user-select:text}
