:root{color:#342448;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f6f0ff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#f6f0ff;min-width:320px}body{min-width:320px;min-height:100svh;margin:0}button,input{font:inherit}button:focus-visible,label:focus-within{outline-offset:3px;outline:3px solid #8b5cf661}#root{min-height:100svh}.app-shell{min-height:100svh;padding:28px;position:relative;overflow:hidden}.app-shell:before{z-index:-3;content:"";background:radial-gradient(circle at 18% 8%,#b08bff80,#0000 26%),radial-gradient(circle at 84% 20%,#fffffff2,#0000 30%),radial-gradient(circle at 48% 78%,#d7a2ff70,#0000 34%),linear-gradient(135deg,#fdfbff 0%,#f1edff 38%,#e8e8ff 68%,#fff6ff 100%);position:fixed;inset:0}.ambient{z-index:-2;filter:blur(34px);opacity:.55;pointer-events:none;border-radius:50%;width:340px;height:340px;animation:12s ease-in-out infinite floatGlow;position:fixed}.ambient-one{background:#b292ff;top:-80px;left:-70px}.ambient-two{background:#f0a9ff;animation-delay:-3s;bottom:6%;right:8%}.ambient-three{background:#fff;width:220px;height:220px;animation-delay:-6s;top:38%;left:46%}.glass-panel{-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);background:linear-gradient(145deg,#ffffffad,#ffffff3d),#f5eeff85;border:1px solid #ffffffb8;border-radius:28px;position:relative;box-shadow:0 24px 80px #7a5bc433,inset 0 1px #fffc}.glass-panel:after{z-index:-1;border-radius:inherit;content:"";background:linear-gradient(135deg,#ffffff9e,#0000 44%,#ad7eff24);position:absolute;inset:1px}.hero-strip{justify-content:space-between;align-items:center;gap:24px;max-width:1420px;margin:0 auto 22px;padding:28px 32px;display:flex}.eyebrow{color:#8058d9;letter-spacing:.11em;text-transform:uppercase;align-items:center;gap:8px;font-size:.72rem;font-weight:800;display:inline-flex}.eyebrow:before{content:"";background:#9e77ff;border-radius:99px;width:8px;height:8px;box-shadow:0 0 18px #8a5cf6d9}h1,h2,h3,p{margin:0}h1{color:#27173f;margin-top:8px;font-size:clamp(2.4rem,5vw,5.4rem);font-weight:800;line-height:.94}h2{color:#2b1d43;margin-top:6px;font-size:clamp(1.25rem,2vw,1.75rem);line-height:1.15}h3{color:#352151;font-size:1.25rem}p{color:#716584}.hero-strip p{max-width:660px;margin-top:14px;font-size:1rem}.hero-orbit{background:radial-gradient(circle,#7d4debad,#0000 42%),radial-gradient(circle,#ffffffe6,#0000 60%);border-radius:50%;flex:0 0 122px;width:122px;height:122px;position:relative;box-shadow:0 0 42px #8454ea59}.hero-orbit span{transform-origin:61px 61px;background:#a885ffc7;border-radius:50%;width:12px;height:12px;animation:7s linear infinite orbit;position:absolute;box-shadow:0 0 20px #8454ea7a}.hero-orbit span:first-child{top:2px;left:55px}.hero-orbit span:nth-child(2){animation-delay:-2.2s;top:55px;left:108px}.hero-orbit span:nth-child(3){animation-delay:-4.5s;top:104px;left:38px}.workspace{grid-template-columns:minmax(0,1fr) minmax(320px,390px);gap:22px;max-width:1420px;margin:0 auto;display:grid}.main-column{gap:18px;display:grid}.uploader{grid-template-columns:minmax(210px,1fr) minmax(230px,340px) auto;align-items:center;gap:18px;padding:20px;display:grid}.uploader p{margin-top:6px}.upload-dropzone{cursor:pointer;background:#ffffff61;border:1px dashed #8963da6b;border-radius:22px;place-items:center;min-height:122px;transition:transform .18s,border-color .18s,box-shadow .18s;display:grid;position:relative;overflow:hidden}.upload-dropzone:hover{border-color:#8963dab8;transform:translateY(-1px);box-shadow:0 14px 34px #8963da2e}.upload-dropzone input,.primary-button input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.upload-dropzone img{object-fit:contain;width:100%;height:100%;max-height:170px;padding:10px}.upload-dropzone span{color:#4c386b;text-align:center;gap:4px;display:grid}.upload-dropzone strong{font-size:1rem}.upload-dropzone small{color:#8b7d9d}.upload-actions,.control-buttons,.modal-actions{flex-wrap:wrap;gap:10px;display:flex}.upload-actions{justify-content:flex-end}button,.primary-button{font:inherit}button,label.primary-button{-webkit-tap-highlight-color:transparent}.primary-button,.ghost-button{cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;min-height:44px;font-weight:800;transition:transform .18s,box-shadow .18s,opacity .18s,background .18s;display:inline-flex;position:relative}.primary-button{color:#fff;background:linear-gradient(135deg,#8b5cf6,#c084fc);padding:0 20px;box-shadow:0 14px 34px #8b5cf657,inset 0 1px #ffffff6b}.ghost-button{color:#5d4285;background:#ffffff80;border:1px solid #ffffffad;padding:0 18px}.primary-button:hover,.ghost-button:hover{transform:translateY(-2px)}.primary-button:disabled,.ghost-button:disabled{cursor:not-allowed;opacity:.45;transform:none}.error-message{color:#9b244d;background:#ffedf5b8;border:1px solid #e04c7840;border-radius:16px;grid-column:1/-1;padding:10px 14px}.controls{justify-content:space-between;align-items:center;gap:16px;padding:16px;display:flex}.segmented-control{background:#ffffff6b;border-radius:999px;grid-template-columns:repeat(3,minmax(72px,1fr));gap:6px;padding:6px;display:inline-grid;box-shadow:inset 0 1px 12px #7653aa14}.segmented-control button{color:#725590;cursor:pointer;background:0 0;border:0;border-radius:999px;min-height:40px;font-weight:800;transition:color .18s,background .18s,box-shadow .18s}.segmented-control button.is-selected{color:#fff;background:linear-gradient(135deg,#8b5cf6,#bd8bff);box-shadow:0 10px 24px #8b5cf647}.board-card{padding:20px}.board-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.grid-pill{color:#67449b;background:#ffffff94;border-radius:999px;flex:none;padding:8px 14px;font-size:.9rem;font-weight:800}.puzzle-board{background:linear-gradient(135deg,#ffffff8a,#e5daff52),#ffffff57;border:1px solid #ffffffbd;border-radius:26px;width:min(100%,820px);min-height:320px;max-height:72svh;margin:0 auto;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 1px #ffffffb8,0 24px 70px #6546a133}.puzzle-piece{cursor:grab;touch-action:manipulation;background-repeat:no-repeat;border:1px solid #ffffffb3;border-radius:10px;min-width:0;min-height:0;transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .2s,filter .2s,opacity .2s;position:relative;box-shadow:0 10px 22px #3b23672e,inset 0 1px #ffffff52}.puzzle-piece:hover{z-index:2;transform:translateY(-3px)scale(1.012);box-shadow:0 16px 32px #54368e3d,0 0 0 3px #b68fff2e}.puzzle-piece:active,.puzzle-piece.is-active{cursor:grabbing;filter:saturate(1.12)brightness(1.04);transform:scale(.98)}.puzzle-piece.is-correct{box-shadow:0 12px 26px #44267429,inset 0 0 0 1px #ffffff47,inset 0 0 24px #ffffff1f}.puzzle-board.is-shuffling .puzzle-piece{animation:.52s both shufflePop}.empty-state{text-align:center;align-content:center;justify-items:center;gap:12px;padding:32px;display:grid;position:absolute;inset:0}.empty-state span{background:linear-gradient(135deg,#ffffffc7,#b18fff52),radial-gradient(circle at 30% 30%,#fff,#0000 42%);border-radius:28px;width:86px;height:86px;box-shadow:0 18px 42px #8b5cf63d,inset 0 1px #ffffffd1}.empty-state p{max-width:440px}.progress-panel{align-self:start;gap:18px;padding:24px;display:grid;overflow:hidden}.progress-ring{aspect-ratio:1;background:conic-gradient(from -90deg, #8b5cf6 var(--progress), #ffffff75 0), linear-gradient(135deg, #ffffffc2, #ffffff2e);border-radius:50%;place-items:center;width:min(240px,72vw);margin:6px auto;display:grid;box-shadow:0 24px 54px #8b5cf63d,inset 0 1px #ffffffd6}.progress-ring>div{aspect-ratio:1;text-align:center;background:radial-gradient(circle at 45% 28%,#fffffff2,#ffffff85),#fff6;border-radius:50%;place-items:center;width:72%;display:grid;box-shadow:inset 0 1px 28px #8b5cf61f}.progress-ring strong{color:#2d1749;font-size:2.55rem;line-height:1}.progress-ring small{color:#7f6b99;max-width:116px;font-weight:800}.glow-meter{background:#ffffff7a;border-radius:99px;height:12px;overflow:hidden;box-shadow:inset 0 1px 8px #5a36961f}.glow-meter span{border-radius:inherit;background:linear-gradient(90deg,#8b5cf6,#d8b4fe,#fff);height:100%;transition:width .26s;display:block;box-shadow:0 0 22px #8b5cf69e}.stats-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin:0;display:grid}.stats-grid div,.status-card,.reference-preview{background:#ffffff6b;border:1px solid #ffffffa8;border-radius:20px;box-shadow:inset 0 1px #ffffff9e}.stats-grid div{padding:14px}.stats-grid dt{color:#87769a;text-transform:uppercase;font-size:.78rem;font-weight:800}.stats-grid dd{color:#2d1749;margin:4px 0 0;font-size:1.55rem;font-weight:900}.status-card{gap:4px;padding:16px;display:grid}.status-card strong{color:#3d2361;font-size:1.05rem}.status-card span{color:#776787}.reference-preview{gap:12px;padding:14px;display:grid}.reference-preview span{color:#725590;text-transform:uppercase;font-size:.84rem;font-weight:900}.reference-preview img{object-fit:contain;background:#ffffff6b;border-radius:16px;width:100%;max-height:220px}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#452f6b2e;place-items:center;padding:22px;animation:.18s both fadeIn;display:grid;position:fixed;inset:0}.success-modal{text-align:center;width:min(460px,100%);padding:34px;animation:.28s both modalIn}.success-modal p{margin-top:10px}.success-burst{background:radial-gradient(circle,#8b5cf6b8,#d8b4fe61 48%,#0000 68%);border-radius:50%;width:120px;height:120px;margin:0 auto 18px;position:relative}.success-burst span{background:#fff;border-radius:50%;width:14px;height:14px;animation:1.8s ease-in-out infinite pulseDot;position:absolute;box-shadow:0 0 24px #8b5cf6cc}.success-burst span:first-child{top:14px;left:50%}.success-burst span:nth-child(2){animation-delay:-.5s;bottom:28px;right:10px}.success-burst span:nth-child(3){animation-delay:-1s;bottom:18px;left:22px}.modal-actions{justify-content:center;margin-top:24px}@keyframes floatGlow{0%,to{transform:translate(0,0)scale(1)}50%{transform:translate(24px,-18px)scale(1.08)}}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes shufflePop{0%{transform:scale(.96)rotate(-1deg)}50%{transform:scale(1.035)rotate(1deg)}to{transform:scale(1)rotate(0)}}@keyframes fadeIn{0%{opacity:0}}@keyframes modalIn{0%{opacity:0;transform:translateY(18px)scale(.96)}}@keyframes pulseDot{50%{opacity:.66;transform:scale(1.35)}}@media (width<=1120px){.workspace{grid-template-columns:1fr}.progress-panel{grid-template-columns:minmax(220px,.8fr) 1fr;align-items:center}.progress-panel>.eyebrow,.progress-panel>.glow-meter,.progress-panel>.status-card,.progress-panel>.reference-preview{grid-column:1/-1}}@media (width<=860px){.app-shell{padding:14px}.hero-strip,.uploader,.controls{flex-direction:column;align-items:stretch}.hero-strip{padding:24px;display:grid}.hero-orbit{display:none}.uploader{grid-template-columns:1fr}.upload-actions{justify-content:stretch}.upload-actions>*,.control-buttons>*{flex:150px}.controls{display:grid}.segmented-control{box-sizing:border-box;width:100%}.control-buttons{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.board-header{flex-direction:column;align-items:flex-start}.puzzle-board{min-height:260px;max-height:none}.progress-panel{grid-template-columns:1fr}}@media (width<=540px){.glass-panel{border-radius:22px}.hero-strip,.board-card,.progress-panel{padding:18px}h1{font-size:2.35rem}.control-buttons{grid-template-columns:1fr}.puzzle-board{border-radius:18px;min-height:220px}.puzzle-piece{border-radius:6px}}
