:root{font-family:ui-rounded,"Avenir Next",Avenir,"Segoe UI",Arial,sans-serif;color:#17324a;background:#f5f9fc;font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:#125581}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.16;letter-spacing:-.035em}h2{font-size:1.35rem;line-height:1.25}h3{font-size:1.07rem}p{line-height:1.55}.muted{color:#60778a}.small{font-size:.88rem}.eyebrow{color:#187765;text-transform:uppercase;letter-spacing:.13em;font-weight:800;font-size:.78rem;margin-bottom:.45rem}.loading{padding:3rem;text-align:center}
.shell{max-width:1100px;padding:0 24px 64px;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 0 26px}.brand{font-weight:900;font-size:1.08rem;letter-spacing:-.02em;color:#173d60}.brandmark{display:inline-flex;background:#173d60;color:#8df0cd;border-radius:11px;width:36px;height:36px;align-items:center;justify-content:center;margin-right:9px;font-size:1.3rem}.top-actions{display:flex;align-items:center;gap:12px}.top-actions .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:165px}
.grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.card{background:#fff;border:1px solid #dce6ef;box-shadow:0 8px 30px #18334f0a;border-radius:22px;padding:25px}.card+.card{margin-top:18px}.grid>.card+.card{margin-top:0}.hero{background:linear-gradient(135deg,#173d60,#174968 72%,#1c6677);border:0;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:218px}.hero .muted{color:#d8f0ef}.hero h1{margin-bottom:12px}.hero p{margin-bottom:0}.hero .eyebrow{color:#8df0cd}.hero-copy{min-width:0}.pet{width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 8px 14px #001e3566)}.pet-frame{display:grid;place-items:center;flex:none}.pet-frame .pet,.pet-frame .fallback{grid-area:1/1}.pet-frame .fallback{display:none;font-size:3rem}.pet-frame img.broken{display:none}.pet-frame img.broken+.fallback{display:block}.pet-placeholder{width:128px;height:128px;border:2px dashed #c4ddd7;border-radius:50%;display:grid;place-items:center;font-size:3rem}
.pill{display:inline-flex;align-items:center;gap:5px;background:#def9ec;color:#156150;border-radius:999px;padding:5px 11px;font-size:.83rem;font-weight:700}.pill.blue{background:#e6f0fa;color:#205780}.pill.amber{background:#fff2d5;color:#79521b}.button{border:0;border-radius:12px;background:#1b6c69;color:white;min-height:45px;padding:10px 17px;font-weight:750}.button:hover{background:#135655}.button.secondary{background:#e7f3f2;color:#155b57}.button.secondary:hover{background:#d8ecea}.button.ghost{background:transparent;border:1px solid #bfd2df;color:#245477}.button.dark{background:#173d60}.button.smallbtn{min-height:36px;padding:6px 11px;font-size:.86rem}.linkbtn{background:transparent;border:0;color:#216d76;font-weight:750;padding:7px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:14px}.item{border:1px solid #deebee;border-radius:15px;padding:14px 16px;background:#fbfefe}.item.active{border-color:#55cbb0;background:#f2fffb}.item h3,.item p{margin-bottom:3px}.item .row{align-items:flex-start}.session-list{display:grid;gap:10px;margin-top:16px}.progressbar{appearance:none;display:block;width:100%;height:10px;border:0;background:#dce9ed;border-radius:20px;overflow:hidden;margin:12px 0 8px}.progressbar::-webkit-progress-bar{background:#dce9ed}.progressbar::-webkit-progress-value{background:#4cc7a7;border-radius:20px}.progressbar::-moz-progress-bar{background:#4cc7a7;border-radius:20px}.subtle{border-top:1px solid #e6eef3;margin:20px 0}.rules{padding-left:19px;margin:7px 0 0}.rules li{margin:6px 0}.rules li::marker{color:#218d78}.error{padding:12px 16px;background:#fff0ed;border:1px solid #fac5b8;color:#9a3823;border-radius:12px}.success{padding:12px 16px;background:#e6f9f0;border:1px solid #9edfc4;color:#1a6249;border-radius:12px}.slot-choice{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.slot-choice label{border:1px solid #bfd5dc;border-radius:11px;padding:9px 13px;cursor:pointer}.slot-choice label:has(input:checked){border-color:#198572;background:#e3f9f0}.slot-choice input{accent-color:#198572;margin-right:7px}.form{display:grid;gap:13px}.field{display:grid;gap:5px;font-weight:650}.field input,.field select{background:#fff;color:#17324a;min-height:44px;border:1px solid #b6c9d7;border-radius:10px;padding:10px 12px;width:100%}.field input:focus,.field select:focus,button:focus-visible{outline:3px solid #68dab9;outline-offset:2px}.notice{background:#e8f5fb;border-radius:15px;padding:15px 17px;color:#245570}.advice details{border-top:1px solid #e3ebee;padding:12px 0}.advice summary{font-weight:750;cursor:pointer}.advice ul{margin:10px 0 0;padding-left:21px}.advice li{margin:6px 0}.advice details:last-child{padding-bottom:0}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#dff7ed,transparent 45%),#f5f9fc}.login-card{width:min(100%,430px);padding:33px}.login-card h1{font-size:1.85rem}.login-card .brand{margin-bottom:29px}.login-card .button{width:100%}.pick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.pick{border:2px solid #dce9ef;border-radius:18px;min-height:133px;background:#fbffff;display:grid;place-items:center}.pick:hover,.pick.selected{border-color:#36ad95;background:#e9fcf4}.pick img{width:96px;height:96px;object-fit:contain}.pick span{font-size:.8rem;color:#4c6a7b;font-weight:700}.pick .fallback{display:none}.pick img.broken{display:none}.pick img.broken+.fallback{display:block;font-size:1.5rem}
.session-mode{max-width:730px;margin:auto}.session-mode .card{margin-top:0}.timer{font-variant-numeric:tabular-nums;font-weight:900;font-size:clamp(4rem,15vw,7rem);letter-spacing:-.07em;line-height:1;color:#173d60;text-align:center;margin:25px 0}.camera-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.camera-preview{display:block;width:100%;height:auto;aspect-ratio:3/2;background:#082a39;border-radius:18px;object-fit:contain}.camera-label{font-size:.86rem;color:#4b6980;margin-top:6px}.hide{display:none!important}video.demo{display:block;width:100%;max-height:320px;border-radius:14px;background:#173d60;margin:14px 0}.badge-row{display:flex;gap:7px;flex-wrap:wrap}.video-panel video{width:100%;max-height:400px;background:#173d60;border-radius:14px}.patient-list{display:grid;gap:10px}.patient-list button{text-align:left;width:100%;border:1px solid #dbe8ef;background:white;border-radius:15px;padding:15px}.patient-list button:hover{border-color:#37ab95}.panel-layout{display:grid;grid-template-columns:300px 1fr;gap:18px}.panel-main{min-width:0}.page-head{margin-bottom:20px}.phase-form{margin-top:18px}.scrolltable{overflow:auto}.table-like{width:100%;border-collapse:collapse}.table-like td,.table-like th{text-align:left;border-bottom:1px solid #e4edef;padding:12px 6px}.table-like th{font-size:.83rem;color:#557082}.dialog-backdrop{position:fixed;inset:0;background:#142e48aa;z-index:5;display:grid;place-items:center;padding:18px}.dialog{width:min(100%,500px);max-height:95vh;overflow:auto;background:white;border-radius:20px}.dialog video{width:100%;background:#082a39;border-radius:10px}.alertline{color:#8b5320;background:#fff2da;padding:12px;border-radius:10px}
@media(max-width:780px){.grid,.panel-layout{grid-template-columns:1fr}.panel-layout>.card+.card{margin-top:0}.shell{padding:0 15px 56px}.topbar{padding:15px 0 21px}.hero{min-height:175px}.pet{width:105px;height:105px}.card{padding:20px}.camera-grid{grid-template-columns:1fr}.top-actions .small{display:none}}@media(max-width:450px){.pick-grid{grid-template-columns:repeat(2,1fr)}.hero{align-items:flex-end}.hero h1{font-size:1.55rem}.pet{width:90px;height:90px}.brand{font-size:.95rem}.card{padding:17px}.table-like{font-size:.84rem}}
.work-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:23px;align-items:start}.work-main{min-width:0}.work-nav{display:grid;gap:7px;position:sticky;top:16px;background:#fff;border:1px solid #dce6ef;border-radius:20px;padding:17px}.work-nav .eyebrow{margin:0 9px 5px}.work-nav button{border:0;background:transparent;border-radius:11px;text-align:left;padding:12px;color:#3c6078;font-weight:750}.work-nav button:hover,.work-nav button.current{background:#e7f3f2;color:#155b57}.work-main .panel-layout{grid-template-columns:220px minmax(0,1fr)}.work-main .panel-main{min-width:0}.patient-list button.active{border-color:#37ab95;background:#f2fffb}.content-options{display:grid;gap:9px}.content-options label{display:flex;gap:9px;align-items:baseline}.content-options input{accent-color:#187765}.advice-editor{border-top:1px solid #e6eef3;padding-top:16px;margin-top:18px}.advice-editor textarea{resize:vertical;width:100%;min-height:130px;border:1px solid #b6c9d7;border-radius:10px;padding:12px;font:inherit;color:#17324a}.advice-copy{white-space:pre-line;margin:12px 0 0}.credentials{line-height:2;word-break:break-word}.work-main .page-head{margin-bottom:23px}
@media(max-width:900px){.work-layout{grid-template-columns:1fr}.work-nav{position:static;display:flex;flex-wrap:wrap;align-items:center}.work-nav .eyebrow{width:100%}.work-nav button{padding:10px}.work-main .panel-layout{grid-template-columns:1fr}.work-main .panel-layout>.card{margin-bottom:18px}}
.access-help{margin-top:19px;border-top:1px solid #dce6ef;padding-top:16px}.access-help summary{cursor:pointer;color:#155b57;font-weight:750}.access-help p{margin:13px 0}.access-help form{margin-top:10px}
.brand{width:240px;height:72px;overflow:hidden;flex:none}.brand-logo{display:block;width:100%;height:100%;object-fit:cover;object-position:center;mix-blend-mode:multiply}.login-card .brand{width:min(100%,320px);height:100px;margin:0 auto 20px}.topbar{padding:12px 0 18px}@media(max-width:450px){.topbar .brand{width:180px;height:60px}.top-actions .button{padding:7px 9px;font-size:.78rem}}
.patient-list button.traffic-green{border-left:6px solid #27865c;background:#f1faf4}.patient-list button.traffic-orange{border-left:6px solid #db8d20;background:#fff8e9}.patient-list button.traffic-red{border-left:6px solid #cd4651;background:#fff1f1}.patient-list button.active{outline:2px solid #173d60;outline-offset:1px}.traffic-label{display:block;font-size:.78rem;font-weight:750;color:#36596b;margin:3px 0}.button.danger{color:#a32d34;border:1px solid #d8a0a3;background:#fff5f4}.button.danger:hover{background:#ffe9e6}.delete-patient{border-top:1px solid #e6eef3;margin-top:22px;padding-top:18px}
.patient-app,.patient-nav{max-width:780px;margin-left:auto;margin-right:auto}.patient-app{gap:18px}.patient-page-head{padding:0 5px}.patient-page-head h1{margin:0 0 7px}.patient-page-head .muted{margin-bottom:0}.patient-nav{display:flex;gap:7px;padding:6px;background:#fff;border:1px solid #dce6ef;border-radius:16px;margin-bottom:22px;box-shadow:0 8px 24px #18334f0a}.patient-nav button{flex:1;min-height:45px;background:transparent;border:0;border-radius:12px;padding:9px 10px;color:#4b647a;font-weight:750}.patient-nav button.current{background:#173d60;color:#fff}.patient-hero{min-height:190px}.patient-mission .row{align-items:flex-start}.patient-mission .pill{flex:none}.patient-mission .session-list{margin-top:20px}.patient-mission .item{background:#fff}.patient-mission .item.active{background:#f1faf4}.patient-next p{margin-bottom:0}.companion-focus{text-align:center;padding-top:34px}.companion-focus .pet-frame{width:190px;height:180px;margin:0 auto 8px}.companion-focus .pet{width:180px;height:180px}.companion-focus .pill{margin:3px 0 18px}.companion-focus .progressbar{max-width:440px;margin:15px auto}.evolution-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.evolution-stage{display:grid;justify-items:center;align-content:start;gap:4px;text-align:center;border:1px solid #e0e9ee;border-radius:16px;padding:13px 6px;min-width:0}.evolution-stage.unlocked{background:#f3faf6;border-color:#b8ddd0}.evolution-stage.locked{background:#f7f8fa;color:#788797}.evolution-stage .stage-picture{width:95px;height:95px;display:grid;place-items:center}.evolution-stage img{width:100%;height:100%;object-fit:contain}.evolution-stage.locked .stage-picture{font-size:2.8rem;font-weight:800;color:#9caab4}.evolution-stage strong{font-size:.85rem}.evolution-stage .small{font-size:.75rem}
@media(max-width:600px){.patient-nav{position:fixed;z-index:4;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));margin:0;box-shadow:0 8px 35px #18334f33}.patient-nav button{font-size:.82rem;padding:8px 5px}.patient-app{padding-bottom:105px}.patient-page-head h1{font-size:1.95rem}.patient-hero{min-height:170px}.patient-hero .pet{width:110px;height:110px}.patient-mission .row{gap:9px}.patient-mission .item .row{align-items:center}.patient-mission .item h3{margin:0}.patient-mission .item .small{margin:0}.patient-mission .item .button{padding:8px 10px}.evolution-stages{gap:6px}.evolution-stage .stage-picture{width:65px;height:65px}.evolution-stage{padding:10px 4px}.session-mode .row{flex-wrap:wrap}.session-mode .row button{flex:1}}
.password-rules{list-style:none;margin:0;padding:12px 14px;background:#f7f9fb;border-radius:12px;font-size:.86rem;line-height:1.55}.password-rules li{color:#a63b36}.password-rules li.valid{color:#167451}.password-rules li.invalid{color:#a63b36}
.welcome-hero{background:linear-gradient(120deg,#173d60,#166a78);color:white;padding:32px}.welcome-hero .eyebrow{color:#bde7dc}.welcome-hero h1{margin:8px 0 12px}.welcome-hero p:last-child{max-width:590px;margin-bottom:0}.welcome-steps{display:grid;gap:14px}.welcome-steps .card{position:relative;padding-left:80px}.welcome-steps h2{margin:0 0 8px}.welcome-steps p{margin:0;color:#526b7d}.welcome-number{position:absolute;left:22px;top:22px;display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#d9f0e8;color:#086755;font-weight:800}.welcome-end{text-align:center}.welcome-end p{font-weight:750;margin:0 0 14px}@media(max-width:600px){.patient-nav button{font-size:.71rem;padding:8px 2px}.welcome-hero{padding:26px}.welcome-steps .card{padding-left:70px}.welcome-number{left:17px}}
.welcome-heading{display:flex;align-items:center;gap:12px}.welcome-camera{width:30px;height:30px;color:#117c71;flex:none}.welcome-evolution{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:18px;padding:12px;border-radius:15px;background:#f2f8fa}.welcome-evolution-step{flex:1;min-width:0;display:grid;justify-items:center;gap:5px;text-align:center}.welcome-evolution-step img{width:92px;height:92px;object-fit:contain}.welcome-evolution-step span{font-size:.76rem;font-weight:750;color:#31556b}.welcome-arrow{font-size:1.8rem;color:#138578;flex:none}@media(max-width:600px){.welcome-evolution{margin-left:-45px;margin-right:-4px;gap:1px;padding:8px 3px}.welcome-evolution-step img{width:65px;height:65px}.welcome-evolution-step span{font-size:.61rem}.welcome-arrow{font-size:1.2rem}}
.welcome-copy{color:#526b7d}.welcome-copy p{margin:12px 0}.welcome-list{margin:8px 0 12px;padding-left:22px}.welcome-list li{padding:2px 0}.welcome-copy strong,.welcome-steps p strong{color:#173d60}
.patient-app .advice{font-size:1.06rem}.patient-app .advice summary{font-size:1.12rem;padding-top:10px;padding-bottom:10px}.patient-app .advice-copy{font-size:1.05rem;line-height:1.7;color:#405d71;white-space:pre-line;margin:12px 0 18px}.patient-app .advice-copy strong{font-weight:800;color:#173d60}.patient-app .advice-exercise>p:not(.small){font-size:1.05rem;line-height:1.7}.patient-app .advice-exercise .small{font-size:.96rem}
.welcome-replay{display:block;margin:12px auto 0}.tour-backdrop{position:fixed;inset:0;background:#0c2339a9;z-index:6}.tour-highlight{position:relative;z-index:7;outline:5px solid #f7c979;outline-offset:5px;border-radius:15px;background:#fff;box-shadow:0 0 0 10px #fff}.tour-card{position:fixed;z-index:8;left:50%;bottom:max(22px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(460px,calc(100vw - 28px));padding:22px;background:#fff;border-radius:18px;box-shadow:0 20px 70px #071f3670;color:#17324a}.tour-card h2{margin:0 0 9px}.tour-card p:not(.eyebrow){margin-bottom:18px}.tour-card .row{gap:8px}@media(max-width:600px){.tour-card{bottom:max(16px,env(safe-area-inset-bottom));padding:18px}.tour-highlight{outline-width:4px;outline-offset:3px}}
.brand-home{border:0;background:transparent;padding:0;display:flex;align-items:center}.brand-home:hover{opacity:.82}.tour-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.tour-actions [data-action="skip-tour"]{margin-right:auto}@media(max-width:380px){.tour-actions{gap:4px}.tour-actions .button{padding:7px 8px;font-size:.76rem}}
.tour-card-pick{position:relative;left:auto;bottom:auto;transform:none;margin:12px auto 20px;box-shadow:0 10px 30px #071f3620;border:2px solid #f7c979}.tour-card-pick p:not(.eyebrow){margin-bottom:12px}
.tour-highlight.welcome-hero{background:linear-gradient(120deg,#173d60,#166a78);color:#fff}.tour-highlight.welcome-hero .eyebrow{color:#bde7dc}
.tour-card-intro{top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:clamp(24px,4vw,44px)}.tour-card-intro h2{font-size:clamp(1.55rem,3vw,2.2rem);margin:10px 0 20px}.tour-card-intro .tour-body{font-size:1.1rem;line-height:1.6}.tour-card-intro .tour-body p{margin:0 0 16px}.tour-card-intro .tour-body ul{padding-left:1.5em;margin:0 0 18px}.tour-card-intro .tour-body li{margin-bottom:12px}.tour-card-intro .tour-actions{margin-top:20px}@media(max-width:600px){.tour-card-intro{padding:24px}.tour-card-intro .tour-body{font-size:1rem;line-height:1.5}}
.finale-overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at 50% 35%,#1c607eeb,#081d36f5);overflow:hidden}.finale-card{position:relative;z-index:2;width:min(620px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;padding:clamp(22px,4vw,40px);border-radius:26px;background:linear-gradient(155deg,#fff,#eaf9f6);box-shadow:0 25px 90px #04142b99;text-align:center;animation:finale-arrive .65s cubic-bezier(.2,1.4,.4,1) both}.finale-card .eyebrow{color:#14796e}.finale-card h1{font-size:clamp(3.4rem,10vw,6rem);line-height:1;color:#173d60;margin:4px 0 18px}.finale-card p:not(.eyebrow){max-width:460px;margin:0 auto 10px;line-height:1.5;font-size:1.07rem}.finale-card h2{font-size:1.4rem;margin:4px 0 22px}.finale-sparkle{color:#d6a02e;font-size:2rem!important;letter-spacing:15px;animation:finale-pulse 2s ease-in-out infinite}.finale-pet{position:relative;display:grid;place-items:center;height:clamp(180px,31vh,280px);margin:8px auto}.finale-pet img{position:relative;z-index:1;max-width:90%;height:90%;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 18px 11px #153e5870);animation:finale-reveal 1s .35s both,finale-float 2.6s 1.35s ease-in-out infinite}.finale-glow{position:absolute;width:230px;height:230px;max-height:90%;max-width:70%;border-radius:50%;background:radial-gradient(circle,#ffdd89 0%,#bce9e2 52%,transparent 74%);animation:finale-pulse 2s ease-in-out infinite}.confetti-sky{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti-piece{position:absolute;left:var(--x);top:-25px;width:10px;height:18px;border-radius:2px;background:hsl(var(--hue) 85% 63%);animation:confetti-fall var(--duration) var(--delay) linear infinite}@keyframes confetti-fall{to{transform:translate(var(--drift),110vh) rotate(900deg)}}@keyframes finale-arrive{from{opacity:0;transform:scale(.82) translateY(30px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes finale-reveal{from{opacity:0;transform:scale(.45) rotate(-12deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes finale-float{50%{transform:translateY(-12px) rotate(2deg)}}@keyframes finale-pulse{50%{transform:scale(1.08);opacity:.7}}@media(prefers-reduced-motion:reduce){.finale-card,.finale-pet img,.finale-glow,.finale-sparkle,.confetti-piece{animation:none}.confetti-sky{display:none}}
.finale-pet{height:220px;max-height:28vh;overflow:hidden}.finale-pet img{display:block;width:200px;height:200px;max-width:55vw;max-height:100%;pointer-events:none}.finale-card h2,.finale-card>button{position:relative;z-index:3}.finale-card>button{margin-top:6px}@media(max-height:700px){.finale-pet{height:150px}.finale-pet img{width:140px;height:140px}}
.evolution-overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;overflow:hidden;padding:16px;background:radial-gradient(circle at center,#16789c,#102f59 60%,#07172f);color:#fff}.evolution-scene{position:relative;z-index:2;width:min(780px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;text-align:center;padding:12px 16px 22px}.evolution-scene .eyebrow{color:#acebdc}.evolution-scene h1{font-size:clamp(2.6rem,8vw,5rem);margin:0 0 8px;color:#fff;text-shadow:0 4px 24px #6ee7ef9c}.evolution-scene p:not(.eyebrow){font-size:clamp(1rem,2.3vw,1.25rem);margin:0 auto 10px;max-width:600px}.evolution-scene h2{font-size:clamp(1.25rem,3vw,2rem);margin:4px 0 18px;animation:evolution-title 1s 3.4s both}.evolution-scene>button{position:relative;z-index:5;min-width:220px;animation:evolution-title .6s 4s both}.evolution-rays{position:absolute;inset:-50%;background:repeating-conic-gradient(from 0deg,#ffffff18 0 8deg,transparent 8deg 25deg);animation:evolution-rotate 25s linear infinite;pointer-events:none}.evolution-stage-anim{position:relative;isolation:isolate;height:clamp(230px,48vh,420px);display:grid;place-items:center;pointer-events:none}.evolution-stage-anim:before{content:'';position:absolute;width:min(390px,75vw);height:min(390px,75vw);border-radius:50%;background:radial-gradient(circle,#fff 0%,#f3e697 17%,#51d6e5 45%,transparent 72%);filter:blur(8px);animation:evolution-aura 5s both}.evolution-stage-anim img{position:absolute;display:block;width:min(330px,66vw);height:90%;object-fit:contain;filter:drop-shadow(0 16px 16px #061b4199)}.evolution-old{animation:evolution-before 5s both}.evolution-new{animation:evolution-after 5s both}.evolution-flash{position:absolute;z-index:3;width:min(440px,85vw);height:min(440px,85vw);border-radius:50%;background:#fff;filter:blur(24px);animation:evolution-burst 5s both;pointer-events:none}@keyframes evolution-before{0%,28%{opacity:1;transform:scale(.8)}40%,49%{opacity:1;transform:scale(1.08);filter:brightness(0) invert(1) drop-shadow(0 0 22px white)}59%,100%{opacity:0;transform:scale(1.3)}}@keyframes evolution-after{0%,45%{opacity:0;transform:scale(.35)}63%{opacity:1;transform:scale(1.18)}75%,100%{opacity:1;transform:scale(1)}}@keyframes evolution-burst{0%,43%,68%,100%{opacity:0;transform:scale(.1)}53%{opacity:.95;transform:scale(1.1)}}@keyframes evolution-aura{0%{opacity:.25;transform:scale(.6)}55%{opacity:1;transform:scale(1.2)}100%{opacity:.65;transform:scale(1)}}@keyframes evolution-title{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes evolution-rotate{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.evolution-rays,.evolution-stage-anim:before,.evolution-old,.evolution-new,.evolution-flash,.evolution-scene h2,.evolution-scene>button{animation:none}.evolution-old,.evolution-flash{display:none}.evolution-new{opacity:1;transform:none}}@media(max-height:650px){.evolution-stage-anim{height:190px}.evolution-stage-anim img{width:160px}.evolution-scene{padding:4px 12px}}

/* Start the transformation only once both pictures are loaded. */
.evolution-old,.evolution-new{animation:none}.evolution-new{opacity:0}.evolution-stage-anim img[hidden]{display:none}
.evolution-flash{opacity:0;animation:none}.evolution-stage-anim:before{animation:none}
.evolution-scene h2,.evolution-scene>button{animation:none}
.evolution-playing .evolution-flash{animation:evolution-burst 5s both}
.evolution-playing .evolution-stage-anim:before{animation:evolution-aura 5s both}
.evolution-finished .evolution-flash{display:none}
@media(prefers-reduced-motion:reduce){.evolution-playing .evolution-flash,.evolution-playing .evolution-stage-anim:before{animation:none}.evolution-flash{display:none}}

.evolution-force-motion .evolution-old{display:block}
.evolution-force-motion.evolution-playing .evolution-flash{display:block;animation:evolution-burst 5s both}
.evolution-force-motion.evolution-playing .evolution-stage-anim:before{animation:evolution-aura 5s both}
.evolution-force-motion .evolution-rays{animation:evolution-rotate 25s linear infinite}
.evolution-force-motion .confetti-sky{display:block}
.evolution-force-motion .confetti-piece{animation:confetti-fall var(--duration) var(--delay) linear infinite}
.evolution-force-motion.evolution-finished .evolution-flash{display:none}
