/* Konnect Play — Tutorials & App Guide (V100). Layers: dialogs 100 < tour 1900 < toast while touring 1960 < app confirm 2000. */
.kpt{position:fixed;inset:0;z-index:1900;pointer-events:none;--kpt-dim:.62;font-family:var(--kp-font,system-ui,sans-serif)}
.kpt[hidden]{display:none}
.kpt-block{position:fixed;background:rgba(5,4,22,var(--kpt-dim));pointer-events:auto;touch-action:none;transition:background .2s}
.kpt-ring{position:fixed;display:none;pointer-events:none;border-radius:14px;border:2px solid #9A77FF;
 box-shadow:0 0 0 3px #00E5FF55,0 0 22px 4px #9A77FFaa,0 0 40px 10px #00E5FF44,inset 0 0 14px #00E5FF33;animation:kptGlow 1.6s ease-in-out infinite}
.kpt-ring.is-look{border-style:dashed;border-color:#00E5FF}
.kpt-ring.is-ok{border-color:#3ee6a1;box-shadow:0 0 0 3px #3ee6a155,0 0 26px 6px #3ee6a177;animation:none}
@keyframes kptGlow{0%,100%{box-shadow:0 0 0 3px #00E5FF44,0 0 16px 3px #9A77FF99,0 0 30px 8px #00E5FF33}50%{box-shadow:0 0 0 5px #00E5FF77,0 0 28px 7px #9A77FFcc,0 0 52px 14px #00E5FF55}}
.kpt-arrow{position:fixed;display:none;width:24px;height:22px;pointer-events:none;filter:drop-shadow(0 0 8px #00E5FFaa)}
.kpt-arrow::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#00E5FF,#9A77FF);clip-path:polygon(50% 100%,0 25%,32% 25%,32% 0,68% 0,68% 25%,100% 25%)}
.kpt-arrow{animation:kptBob 1s ease-in-out infinite}
.kpt-arrow.is-up{transform:rotate(180deg);animation-name:kptBobUp}
@keyframes kptBob{0%,100%{translate:0 -4px}50%{translate:0 3px}}
@keyframes kptBobUp{0%,100%{translate:0 4px}50%{translate:0 -3px}}
.kpt-tip{position:fixed;pointer-events:auto;box-sizing:border-box;max-height:calc(100vh - 24px);overflow:auto;padding:14px 16px 12px;border-radius:18px;
 color:#fff;background:linear-gradient(160deg,#1c1840 0%,#121029 70%);border:1px solid #9A77FF88;
 box-shadow:0 18px 50px #000000aa,0 0 26px #9A77FF44,inset 0 1px 0 #ffffff14;animation:kptIn .22s cubic-bezier(.2,.7,.2,1)}
.kpt-tip.is-nudge{animation:kptNudge .42s}
@keyframes kptIn{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
@keyframes kptNudge{0%,100%{transform:none}25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}
.kpt-head{display:flex;align-items:center;gap:8px;justify-content:space-between}
.kpt-chap{font-size:12px;font-weight:700;letter-spacing:.02em;color:#c9bcff}
.kpt-x{min-width:44px;min-height:36px;border-radius:10px;background:#ffffff10;border:1px solid #ffffff22;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.kpt-meter{height:6px;border-radius:99px;background:#ffffff18;overflow:hidden;margin:8px 0 4px}
.kpt-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#00E5FF,#1677FF 35%,#9A77FF 70%,#E500FF);transition:width .35s}
.kpt-sub{font-size:12px;color:#b9b9cf}
.kpt-title{margin:10px 0 4px;font-size:18px;line-height:1.25;outline:none;color:#fff}
.kpt-text{margin:0 0 8px;font-size:14.5px;line-height:1.5;color:#ecebff}
.kpt-status{margin:6px 0 10px;padding:8px 10px;border-radius:11px;font-size:13px;line-height:1.4;background:#00E5FF14;border:1px solid #00E5FF33;color:#bff7ff;min-height:1.4em}
.kpt-status:empty{display:none}
.kpt-status.is-flash{background:#E500FF1f;border-color:#E500FF66;color:#ffd6ff}
.kpt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kpt-actions .kpt-next{margin-left:auto}
.kpt-tip button{min-height:44px}
.kpt-tip .primary[disabled]{opacity:.45;filter:saturate(.4);cursor:not-allowed}
.kpt-tip .outline-btn,.kpt-tip .text-btn{color:#fff}
.kpt-tip .outline-btn{border-color:#ffffff33;background:#ffffff0d}
.kpt-tip .outline-btn[disabled]{opacity:.4}
.kpt-show{font-size:13px}
.kpt-tip :focus-visible{outline:none;box-shadow:0 0 0 3px #00E5FF99}
.kpt-burst{position:absolute;right:16px;top:44px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#3ee6a1;color:#062b1d;font-weight:900;font-size:20px;
 box-shadow:0 0 0 0 #3ee6a199;animation:kptPop .5s cubic-bezier(.2,1.6,.4,1),kptRipple 1s .1s ease-out}
.kpt-tip{position:fixed}
@keyframes kptPop{from{transform:scale(.2);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes kptRipple{from{box-shadow:0 0 0 0 #3ee6a199}to{box-shadow:0 0 0 18px #3ee6a100}}
.kpt-menu{display:grid;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid #ffffff1f}
.kpt-menu button{text-align:left;padding:10px 12px;border-radius:11px;background:#ffffff0d;border:1px solid #ffffff1f;color:#fff;font-size:14px;cursor:pointer}
.kpt-menu button:hover{background:#9A77FF2a}
.kpt-chapdone{text-align:center;padding:10px 4px}
.kpt-check{width:62px;height:62px;margin:4px auto 6px;border-radius:50%;display:grid;place-items:center;font-size:32px;font-weight:900;color:#062b1d;
 background:radial-gradient(circle at 35% 30%,#9dffd6,#3ee6a1);box-shadow:0 0 26px #3ee6a199;animation:kptPop .55s cubic-bezier(.2,1.6,.4,1)}
.kpt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.kpt-active #toast{z-index:1960}

/* Intro screen */
.kpt-screen{position:fixed;inset:0;z-index:1950;display:grid;place-items:center;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));
 background:radial-gradient(circle at 20% 15%,#00E5FF22,transparent 45%),radial-gradient(circle at 85% 85%,#E500FF22,transparent 45%),rgba(5,4,22,.82);backdrop-filter:blur(6px);animation:kptFade .3s}
.kpt-intro-card{width:min(100%,440px);max-height:100%;overflow:auto;box-sizing:border-box;text-align:center;padding:26px 22px 20px;border-radius:24px;color:#fff;
 background:linear-gradient(165deg,#1d1946,#0f0e24 75%);border:1px solid #9A77FF77;box-shadow:0 24px 70px #000000b0,0 0 40px #9A77FF33;animation:kptRise .45s cubic-bezier(.2,.7,.2,1)}
.kpt-orb,.kpt-done-orb{width:96px;height:96px;margin:0 auto 12px;border-radius:28px;display:grid;place-items:center;background:#0b0a20;
 box-shadow:0 0 0 2px #9A77FF66,0 0 34px #00E5FF55,0 0 60px #9A77FF44;animation:kptFloat 3.2s ease-in-out infinite}
.kpt-orb img,.kpt-done-orb img{border-radius:18px}
.kpt-intro-card h2{margin:4px 0 2px;font-size:24px}
.kpt-tag,.kpt-l2{margin:0 0 12px;font-weight:800;letter-spacing:.04em;background:linear-gradient(100deg,#00E5FF,#9A77FF 55%,#E500FF);-webkit-background-clip:text;background-clip:text;color:transparent}
.kpt-lead{margin:0 0 12px;color:#e3e1f7;line-height:1.55}
.kpt-est{display:inline-block;margin:0 0 16px;padding:6px 12px;border-radius:99px;font-size:13px;background:#00E5FF14;border:1px solid #00E5FF40;color:#bff7ff}
.kpt-intro-actions{display:grid;gap:10px}
.kpt-intro-actions button,.kpt-chlink{min-height:48px;font-size:15px}
.kpt-intro-card .outline-btn,.kpt-intro-card .text-btn{color:#fff}
.kpt-big{font-size:17px!important;min-height:54px!important;box-shadow:0 0 24px #9A77FF66}
.kpt-chlink{margin-top:8px;color:#c9bcff!important}
@keyframes kptFade{from{opacity:0}to{opacity:1}}
@keyframes kptRise{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes kptFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* Small invitation card */
.kpt-invite{position:fixed;z-index:1800;left:12px;right:12px;margin:0 auto;max-width:520px;bottom:calc(84px + env(safe-area-inset-bottom));box-sizing:border-box;
 display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;border-radius:18px;color:#fff;background:linear-gradient(160deg,#211b4d,#121029);border:1px solid #9A77FF88;
 box-shadow:0 14px 40px #000000aa,0 0 22px #9A77FF44;animation:kptRise .35s cubic-bezier(.2,.7,.2,1)}
@media (min-width:761px){.kpt-invite{bottom:24px}}
.kpt-invite>div{flex:1;min-width:0}.kpt-invite strong{display:block}.kpt-invite small{color:#c6c4dc}
.kpt-inv-ic{font-size:26px}
.kpt-invite button{min-height:44px;white-space:nowrap}
.kpt-invite .icon-btn{min-width:44px;color:#fff}

/* Completion screen */
.kpt-blur #app,.kpt-blur .kp-site-foot{filter:blur(9px) brightness(.55);transition:filter .45s}
.kpt-done{position:fixed;inset:0;z-index:1970;display:grid;place-items:center;padding:16px;overflow:hidden;background:rgba(5,4,22,.55);animation:kptFade .4s}
.kpt-done-fx{position:absolute;inset:0;pointer-events:none}
.kpt-p{position:absolute;bottom:-12px;border-radius:50%;opacity:0;animation:kptRiseP linear infinite}
.kpt-p-c{background:#00E5FF;box-shadow:0 0 10px #00E5FF}.kpt-p-p{background:#9A77FF;box-shadow:0 0 10px #9A77FF}.kpt-p-b{background:#E500FF;box-shadow:0 0 10px #E500FF}
@keyframes kptRiseP{0%{transform:translateY(0) scale(.6);opacity:0}12%{opacity:.9}100%{transform:translateY(-105vh) scale(1.1);opacity:0}}
.kpt-done-card{position:relative;width:min(100%,460px);text-align:center;color:#fff;padding:18px 10px}
.kpt-done-card>*{opacity:0;animation:kptRise .6s cubic-bezier(.2,.7,.2,1) forwards}
.kpt-done-card .kpt-done-orb{animation:kptRise .6s forwards,kptFloat 3.2s 0.6s ease-in-out infinite;width:110px;height:110px}
.kpt-l1{animation-delay:.2s!important;margin:8px 0 6px;font-size:clamp(26px,7vw,38px);font-weight:900;letter-spacing:.03em;text-shadow:0 0 24px #9A77FFaa,0 0 50px #00E5FF55}
.kpt-done-card .kpt-l2{animation-delay:.45s!important;font-size:18px}
.kpt-l3{animation-delay:.7s!important;margin:0 auto 10px;max-width:380px;line-height:1.55;color:#ecebff;font-size:16px}
.kpt-l4{animation-delay:.95s!important;margin:0 0 20px;font-size:17px;font-weight:700}
.kpt-l5{animation-delay:1.15s!important}
.kpt-done-btn{display:block;margin:0 auto;min-width:220px;min-height:58px;font-size:20px!important;font-weight:900;letter-spacing:.12em;border-radius:18px!important;box-shadow:0 0 30px #9A77FFaa,0 0 60px #00E5FF44}
.kpt-done-card .outline-btn{display:block;margin:0 auto 12px;min-height:48px;color:#fff}

/* Settings section */
.kpt-set-status{display:grid;gap:4px;padding:12px;border-radius:14px;background:var(--kp-card-2,#1e1e38);border:1px solid var(--kp-line,#2b2b4d)}
.kpt-set-status small{color:var(--kp-text-3,#8d8daa)}
.kpt-set-actions{display:grid;gap:8px;margin:12px 0 6px}
.kpt-set-actions button{min-height:46px}
.kpt-chlist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.kpt-chn{font-size:22px;width:34px;text-align:center;flex:none}
.kpt-chrow{display:flex!important;align-items:center;gap:10px;width:100%}
.kpt-tick{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:99px;font-size:11px;background:#3ee6a126;color:#3ee6a1;border:1px solid #3ee6a166}
:root[data-kp-theme="light"] .kpt-tick{color:#0b7a4c}

/* Reduced motion (device setting or Settings → Appearance → Reduce motion): no movement, instant fades. */
@media (prefers-reduced-motion:reduce){.kpt *,.kpt-screen,.kpt-screen *,.kpt-invite,.kpt-done *{animation:none!important;transition:none!important}.kpt-done-card>*{opacity:1}}
html[data-kp-motion="reduced"] .kpt *,html[data-kp-motion="reduced"] .kpt-screen,html[data-kp-motion="reduced"] .kpt-screen *,html[data-kp-motion="reduced"] .kpt-invite,html[data-kp-motion="reduced"] .kpt-done *{animation:none!important;transition:none!important}
html[data-kp-motion="reduced"] .kpt-done-card>*,.kpt-done.is-still .kpt-done-card>*{opacity:1;animation:none!important}
@media (forced-colors:active){.kpt-ring{border:3px solid Highlight}.kpt-tip,.kpt-intro-card{border:2px solid CanvasText}}

/* Short screens (small phones, phone landscape): a compact card leaves room for the highlighted control. */
@media (max-height:760px){.kpt-tip{padding:10px 12px 8px}.kpt-sub{display:none}.kpt-title{margin:6px 0 2px;font-size:16px}.kpt-text{font-size:13.5px;margin-bottom:4px}.kpt-status{margin:4px 0 6px;padding:6px 8px}.kpt-tip button{min-height:40px}.kpt-skip{margin-top:2px}.kpt-meter{margin:6px 0 2px}}

/* The tour's cards are always dark, so they keep their own text and button colours in the light theme too. */
.kpt-tip h2,.kpt-tip .kpt-text,.kpt-intro-card h2,.kpt-intro-card .kpt-lead,.kpt-invite strong,.kpt-done-card h2,.kpt-done-card .kpt-l3,.kpt-chapdone h2{color:#fff!important}
.kpt-invite small{color:#c6c4dc!important}
.kpt-tip .outline-btn,.kpt-intro-card .outline-btn,.kpt-done-card .outline-btn,.kpt-invite .icon-btn{color:#fff!important;background:#ffffff12!important;border-color:#ffffff38!important}
.kpt-tip .text-btn,.kpt-intro-card .text-btn{color:#fff!important;background:transparent!important}
.kpt-tip .kpt-skip{color:#b9b9cf!important}
.kpt-intro-card .kpt-chlink{color:#c9bcff!important}
:root[data-kp-theme="light"] .kpt-done{background:rgba(5,4,22,.72)}
:root[data-kp-theme="light"] .kpt-screen{background:radial-gradient(circle at 20% 15%,#00E5FF22,transparent 45%),radial-gradient(circle at 85% 85%,#E500FF22,transparent 45%),rgba(5,4,22,.86)}

/* ---------------------------------------------------------------- Reserved panel (Nov 2026 redesign)
   While a tour runs the app gives up a strip of the screen: a column on the right (wide screens) or a compact sheet at
   the bottom (phones). Everything the app positions on the screen moves into the remaining area, so the explanation
   never covers what it explains. --kpt-rr / --kpt-rb are set by tutorial.js (0 when not used). */
html.kpt-docked{--kpt-rr:0px;--kpt-rb:0px}
html.kpt-dock-r body{padding-right:var(--kpt-rr)!important;box-sizing:border-box}
html.kpt-dock-b body{padding-bottom:var(--kpt-rb)!important}
html.kpt-docked .modal-backdrop,html.kpt-docked .kp-ep-backdrop,html.kpt-docked .kp-reward-pop{right:var(--kpt-rr)!important;bottom:var(--kpt-rb)!important}
html.kpt-docked #modal-root .modal{max-width:100%!important;max-height:100%!important}
html.kpt-docked .mobile-bar{right:var(--kpt-rr);bottom:var(--kpt-rb)}
html.kpt-dock-b .mobile-bar{padding-bottom:9px}
@media(max-width:820px){html.kpt-docked .clips-stage{right:var(--kpt-rr);bottom:calc(60px + var(--kpt-rb))}}
html.kpt-docked #toast,html.kpt-docked .kp-badge-pop,html.kpt-docked .kp-new-posts{margin-left:calc(var(--kpt-rr) / -2)}
html.kpt-docked #toast,html.kpt-docked .kp-badge-pop,html.kpt-docked .kp-op-pill{margin-bottom:var(--kpt-rb)}
html.kpt-docked .kp-op-pill{margin-right:var(--kpt-rr)}
html.kpt-narrow .right-rail{display:none}
html.kpt-narrow .layout{grid-template-columns:210px minmax(0,720px);gap:22px}
html.kpt-compact .right-rail{display:none}
html.kpt-compact .layout{grid-template-columns:60px minmax(0,1fr);gap:12px;padding-left:10px;padding-right:10px}
html.kpt-compact .sidebar .nav-btn{font-size:0;gap:0;justify-content:center;padding:12px 6px}
html.kpt-compact .sidebar .nav-btn .nav-icon{font-size:18px}
html.kpt-compact .sidebar .logo-wordmark,html.kpt-compact .sidebar .demo-note,html.kpt-compact .sidebar>:not(.logo):not(.nav):not(.create-side):not(.set-nav):not(.nav-btn){display:none}
html.kpt-compact .sidebar .logo{justify-content:center}
html.kpt-compact .sidebar .create-side{font-size:0;padding:10px 0;width:44px;margin:8px auto}html.kpt-compact .sidebar .create-side::before{content:"＋";font-size:20px}
/* Rewards and other pop-ups that arrive during the tour wait until it's finished, paused or closed. */
html.kpt-active .kp-reward-pop,html:has(#kpt-intro) .kp-reward-pop,html:has(#kpt-done) .kp-reward-pop{display:none!important}

.kpt-dock{position:fixed;display:none;top:0;right:0;bottom:0;width:var(--kpt-rr,0px);pointer-events:auto;
 background:radial-gradient(circle at 80% 0%,#00E5FF14,transparent 45%),radial-gradient(circle at 10% 100%,#E500FF12,transparent 45%),linear-gradient(180deg,#120f2e,#0a0920);
 border-left:1px solid #9A77FF66;box-shadow:-12px 0 32px #00000066}
.kpt[data-dock="r"] .kpt-dock{display:block}
.kpt[data-dock="r"] .kpt-tip{max-height:calc(100vh - 24px)}
.kpt[data-dock="b"] .kpt-tip{width:auto;max-height:min(48vh,360px);border-radius:20px 20px 0 0;border-width:1px 0 0;padding:10px 14px calc(8px + env(safe-area-inset-bottom));
 box-shadow:0 -12px 34px #000000aa,0 -1px 0 #9A77FF66;animation:kptUp .24s cubic-bezier(.2,.7,.2,1)}
.kpt[data-dock="b"] .kpt-sub{display:none}
.kpt[data-dock="b"] .kpt-title{margin:6px 0 2px;font-size:16.5px}
.kpt[data-dock="b"] .kpt-text{font-size:14px;margin-bottom:4px}
.kpt[data-dock="b"] .kpt-status{margin:4px 0 8px;padding:6px 9px}
.kpt[data-dock="b"] .kpt-meter{margin:6px 0 2px}
@keyframes kptUp{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
.kpt.is-free .kpt-block{pointer-events:none;background:transparent}
.kpt-arrow.is-left{transform:rotate(90deg);animation-name:kptBobL}
@keyframes kptBobL{0%,100%{translate:4px 0}50%{translate:-3px 0}}
.kpt-show[hidden]{display:none!important}
.kpt-show{font-size:13px;padding:0 12px}
.kpt-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px}
.kpt-foot .text-btn{min-height:36px!important;font-size:12.5px;padding:0 4px;color:#c9c7e0!important;text-decoration:underline;text-underline-offset:3px}
.kpt-foot .kpt-skip{display:inline;margin:0}
/* The Clips player is shorter while the panel is open: its side buttons get compact so they stay below the top bar. */
html.kpt-docked .clip-rail{gap:4px;bottom:12px}
html.kpt-docked .clip-rail button span{width:36px;height:36px;font-size:17px}
html.kpt-docked .clip-rail button small{font-size:10px}
/* The "done" tick sits left of the ⋯ menu button, never on it. */
.kpt-tip .kpt-burst{top:8px;right:64px;width:32px;height:32px;font-size:17px}