@font-face{font-family:Nunito;src:url(nunito.woff2);font-weight:200 1000;font-display:swap}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;color:#372451;background:#fff6e6;font:800 16px Nunito,ui-rounded,system-ui,sans-serif;user-select:none;-webkit-user-select:none;overscroll-behavior:none}body:before{content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(#ecac7630 1.6px,transparent 1.8px) 0 0/23px 23px}
button,input{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button{border:2px solid #402851;background:#fffdf9;border-radius:18px;box-shadow:0 3px #422856;padding:8px 14px;min-height:44px;font-weight:950;line-height:1.12;flex-shrink:0}button:active{transform:translateY(2px);box-shadow:none}button:disabled{opacity:.46}button svg{vertical-align:middle}button img{pointer-events:none}button.primary,.sel{color:white;background:#7145c7}h1,h2,p{margin:0}h2{font-weight:1000;letter-spacing:-.6px;font-size:clamp(21px,6vw,29px)}main{margin:auto;width:min(100%,650px)}#app{padding:max(12px,env(safe-area-inset-top)) 15px max(14px,env(safe-area-inset-bottom));display:flex;min-height:100vh;min-height:100dvh;align-items:center;flex-direction:column;justify-content:center;gap:13px}
#app.play{height:100vh;height:100dvh;min-height:470px;gap:10px;justify-content:space-between;padding-inline:11px}
.row,header{display:flex;align-items:center;justify-content:center;gap:9px;width:100%}header{justify-content:space-between;flex:none}header>span{flex:1;text-align:center}header small{display:block;color:#70577f}button.round{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;padding:0;background:white}
#app.home{gap:clamp(12px,2.2vh,22px);max-width:460px;margin:auto}.brand{display:flex;gap:10px;align-items:center;justify-content:center}.brand h1{text-align:center;font-size:clamp(32px,min(10vw,5.8vh),46px);font-weight:1000;line-height:.96;letter-spacing:-2px;transform:rotate(-3deg);text-shadow:0 3px white}.brand b{color:#d53967;font-size:.86em;display:block;letter-spacing:-1px}.brand img{width:42px;transform:rotate(-14deg)}.brand img:last-child{transform:rotate(17deg);width:36px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(11px,1.7vh,18px);width:100%}.tile{background:var(--bg);border:2.5px solid #392347;overflow:hidden;padding:0;border-radius:25px;box-shadow:0 5px #402851,inset 0 5px #ffffff70;display:flex;flex-direction:column;position:relative;align-items:center;justify-content:flex-end;height:clamp(131px,min(22.2vh,47vw),204px)}.tile .art{width:100%;min-height:0;flex:1;position:relative;overflow:hidden;background:radial-gradient(ellipse at center 62%,#ffffff6e,transparent 69%)}.art>*{position:absolute;object-fit:contain;left:50%;top:50%;transform:translate(-50%,-50%);height:100%;width:100%}.tile strong{font-size:clamp(17px,5vw,22px);font-weight:1000;letter-spacing:-.45px;background:#fffcf5;border-top:2px solid #422856;width:100%;display:flex;justify-content:space-between;align-items:center;padding:8px 10px 9px 13px}.tile strong svg{width:19px}.art:before,.art:after{content:"✦";color:white;position:absolute;left:9%;top:12%;font-size:23px}.art:after{left:auto;top:61%;right:9%;font-size:17px}.home footer{display:flex;align-items:center;gap:10px;justify-content:space-between;width:100%;padding:0 3px}.home footer button{min-height:40px;border-radius:22px;font-size:14px;padding:6px 12px}.home footer span{font-size:13px;color:#624776}
.stage{min-height:0;min-width:0;flex:1;width:100%;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-radius:24px;background:#ecdffa;box-shadow:inset 0 0 0 2px #42285620}canvas{display:block;touch-action:none;-webkit-touch-callout:none;max-width:100%;max-height:100%;object-fit:contain}canvas#board{border-radius:18px}.tools{width:100%;display:grid;gap:8px;flex:none}.rail{display:flex;gap:8px;overflow-x:auto;padding:3px 3px 6px;scrollbar-width:none;align-items:center}.rail::-webkit-scrollbar{display:none}.rail button{font-size:14px;padding:6px 12px}.rail button img{display:block;height:44px;width:46px;object-fit:contain;margin:auto}.rail .swatch{border-radius:50%;width:42px;min-height:42px;border:2px solid #402851;box-shadow:0 2px #402851}.swatch.sel{box-shadow:inset 0 0 0 4px white,0 2px #402851}.rail input[type=color]{width:46px;height:43px;flex-shrink:0;border:2px solid #402851;border-radius:12px;background:white}.tools input[type=range]{accent-color:#7145c7;width:40%;height:31px;flex:1}.help,#note{text-align:center;font-size:15px;font-weight:900}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;width:100%;max-width:408px}.choices img{display:block;width:100%;height:clamp(120px,23vh,230px);object-fit:contain}.choices button{background:#fbd5e1}.choices button:nth-child(2),.choices button:nth-child(3){background:#bdeee7}
#toast{pointer-events:none;position:fixed;bottom:15%;left:50%;transform:translateX(-50%);border-radius:25px;background:#38264e;color:white;padding:12px 20px;width:max-content;max-width:88%;text-align:center;z-index:20}#toast:empty{display:none}.shade{position:fixed;inset:0;background:#2a1b47a0;display:grid;place-items:center;z-index:10;padding:20px}.modal{background:#fff8e9;padding:25px;border:3px solid;border-radius:30px;box-shadow:0 6px;max-width:390px;max-height:88dvh;overflow:auto;text-align:center;display:grid;gap:16px;justify-items:center}.modal img{max-width:100%;max-height:53vh;border-radius:14px;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default}.modal button{min-width:110px}.conf{position:fixed;top:-20px;width:11px;height:18px;border-radius:4px;animation:fall 1.6s ease-in forwards;pointer-events:none;z-index:15}@keyframes fall{to{transform:translate(25px,110vh) rotate(530deg)}}.shake{animation:shake .22s linear}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
progress{width:74%;accent-color:#8952dc;height:14px}.levels{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;width:100%;padding:5px}.levels button{padding:5px 1px}.levels button.done{background:#9bedd0}.levels button:disabled{box-shadow:none}
@media(max-height:710px){#app.play{gap:6px}.tile strong{padding-block:6px}.tools{gap:3px}.rail button img{height:34px}.brand h1{font-size:32px}.rail{padding-block:2px 5px}.help,#note{font-size:14px}}@media(min-width:760px) and (min-height:680px){#app.home{max-width:630px}.home .grid{grid-template-columns:repeat(3,1fr);gap:19px}.tile{height:220px}.brand h1{font-size:53px}.brand{margin-bottom:12px}}
.home .tile{height:clamp(155px,min(30vh,57vw),244px)}.home .grid{grid-template-columns:1fr 1fr}.home .grid.pair{grid-template-columns:1fr;max-width:340px}.pair .tile{height:clamp(161px,32vh,265px)}.home .brand{margin-bottom:8px}.brand h1{font-size:clamp(40px,min(15vw,7.5vh),62px)}.pair strong{padding-inline:20px}.home footer{max-width:420px}.art #eyeIcon{width:100%;height:auto}
@media(min-width:760px){#app.home{max-width:535px}.home .grid.pair{grid-template-columns:1fr 1fr;max-width:100%}.home .tile{height:265px}}
#mix span{display:block;background:white;border-radius:50%;color:#382453;font-size:20px;line-height:22px;width:22px;margin-left:-4px}.modal label{width:100%}.modal input{width:100%;display:block;height:29px;accent-color:#814ace}#sample{width:95px;height:65px;border-radius:22px;border:2px solid}#hue{-webkit-appearance:none;background:linear-gradient(90deg,red,#ff0,#0f0,cyan,blue,magenta,red);border-radius:18px}#hue::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;background:white;border-radius:50%;border:3px solid #422856}
