:root{font-family:"Nunito","Trebuchet MS",system-ui,sans-serif;color:#392e49;background:#fbf7ff;font-size:16px;--plum:#492c66;--muted:#6d6078;--line:#ded3e5}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 4% 38%,#f9eeff80,transparent 45%),#fbf8fd}button{font:inherit;font-weight:700;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #157073;outline-offset:4px}header{border-bottom:1px solid #ded5e6;background:#fefbff}.bar,main{max-width:1040px;margin:auto}.bar{display:flex;align-items:center;justify-content:space-between;padding:14px 28px;min-height:60px}.brand{display:flex;align-items:center;gap:11px;color:var(--plum);font-family:"Bricolage Grotesque","Trebuchet MS",sans-serif;font-size:1.25rem;letter-spacing:-.055em;font-weight:900}.mini-rainbow{width:31px;height:19px;position:relative;display:inline-block;border:3px solid #b65384;border-bottom:0;border-radius:30px 30px 0 0}.mini-rainbow:before,.mini-rainbow:after{content:"";position:absolute;bottom:0;border-radius:30px 30px 0 0;border:3px solid #e9a657;border-bottom:0;inset:2px 2px 0}.mini-rainbow:after{inset:7px 7px 0;border-color:#56a5a2}.subtle,.shuffle{background:transparent;border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 0 8px 12px;min-height:44px;color:#59436c;font-size:.94rem}.subtle:hover,.shuffle:hover{text-decoration:underline}.qmark{display:inline-grid;place-items:center;width:19px;height:19px;border:1.5px solid currentColor;border-radius:50%;font:700 .83rem sans-serif}main{padding:22px 28px 0}.hero{position:relative;overflow:hidden;background:linear-gradient(112deg,#fff1dc 0%,#fff4e5 53%,#f6eafa 100%);border:1px solid #ead6d3;border-radius:25px;display:flex;align-items:center;justify-content:space-between;padding:20px 46px;min-height:178px;isolation:isolate}.series{font-weight:800;font-size:.91rem;color:#805177;letter-spacing:.015em;margin:0 0 7px}.intro{z-index:2}.intro h1,.win h2,dialog h2{font-family:"Young Serif","Bookman Old Style",Georgia,serif;font-weight:800;color:var(--plum)}.intro h1{font-size:clamp(3.1rem,6.7vw,5.1rem);line-height:.98;letter-spacing:-.07em;margin:0}.intro h1 em{font-weight:inherit;color:#a24774}.intro>p:last-child{font-size:1.06rem;margin:15px 0 0;line-height:1.45}.artwork{position:relative;width:35%;min-width:180px;align-self:stretch;display:flex;align-items:center;justify-content:center}.artwork img{height:169px;max-width:100%;object-fit:contain;mix-blend-mode:multiply;transform:rotate(-5deg);position:relative}.star{position:absolute;font-style:normal;color:#ba769c}.s1{top:2%;left:21%;font-size:1.3rem}.s2{top:24%;right:9%;font-size:1.5rem;color:#997bbb}.s3{bottom:13%;left:11%;font-size:.95rem;color:#ce9451}.s4{bottom:0;right:18%;font-size:1rem}.orbit{border:1.5px dashed #ceacc6;border-top-color:transparent;border-right-color:transparent;border-radius:50%;width:105%;height:55%;position:absolute;transform:rotate(-18deg);opacity:.75}.game{padding:19px 24px 24px;margin-top:16px;background:#fffdfd;border:1px solid #dfd3e7;border-radius:24px;box-shadow:0 4px 0 #e9e1ef99}.settings,.status,.progress{display:flex;align-items:center}.settings,.status{justify-content:space-between}.settings{border-bottom:1px solid #ebe4ee;padding-bottom:13px}.levels{display:inline-flex;padding:4px;background:#f2edf5;border:1px solid #e4d9ea;border-radius:999px;gap:2px}.levels button{border:0;border-radius:999px;background:transparent;min-height:38px;padding:0 18px;color:#65556f;font-size:.94rem}.levels button[aria-pressed=true]{background:var(--plum);color:white;box-shadow:0 2px 3px #40275d22}.shuffle span{font:1.5rem/1 sans-serif}.status{color:var(--muted);font-size:.94rem;padding:14px 2px}.status strong{color:var(--plum)}.progress{gap:5px}.tiny-star{color:#b66e35;font-size:1.15rem;margin-right:3px}.board{display:grid;grid-template-columns:repeat(var(--cols,6),minmax(0,1fr));gap:10px;max-width:100%;margin:auto}.board[data-pairs="3"]{--cols:3;max-width:530px}.board[data-pairs="10"]{--cols:5;max-width:790px}.card{display:block;position:relative;width:100%;border:0;background:none;padding:0;aspect-ratio:1.19;border-radius:15px;perspective:720px;outline-offset:3px}.card-frame{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .33s ease}.card.open .card-frame,.card.matched .card-frame{transform:rotateY(180deg)}.back,.face{position:absolute;display:grid;place-items:center;inset:0;border-radius:14px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}.back{background:#76539c url("art/card-back.png") center/auto 95% no-repeat;border:2px solid #69488c;box-shadow:0 3px 0 #573c76}.back:after{content:"";position:absolute;inset:5px;border-radius:9px;border:1px dashed #e4c4f28c}.card:not(.open):not(.matched):hover .back{background-color:#68458c}.face{transform:rotateY(180deg);background:#fffbf1;border:2px solid #d4b6d9}.face img{display:block;width:92%;height:91%;object-fit:contain;mix-blend-mode:multiply;pointer-events:none}.card.matched .face{border-color:#62a79a;background:#eef8ef}.check{display:none}.matched .check{display:grid;position:absolute;right:4px;bottom:4px;width:21px;height:21px;place-items:center;border-radius:50%;background:#24685a;color:white;font-size:.8rem}.win{margin-top:20px;padding:14px 18px;border:1px solid #c9dcc4;border-radius:16px;background:#f0f8ed;display:flex;align-items:center;gap:16px}.win img{width:58px;height:60px;object-fit:contain;mix-blend-mode:multiply}.win h2,dialog h2{margin:0;font-size:1.6rem;line-height:1.1;letter-spacing:-.025em}.win p{margin:4px 0 0}.win button,dialog button{border:0;background:var(--plum);color:white;border-radius:999px;padding:12px 20px;font-weight:700;min-height:44px}.win button{margin-left:auto}.win[hidden]{display:none}footer{text-align:center;padding:23px 12px;color:#7b6a85;font-size:.86rem}footer b{color:#655270}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}dialog{max-width:min(420px,92vw);border:1px solid #d5c6dd;border-radius:22px;background:#fff9f1;padding:0;color:#493d52}dialog::backdrop{background:#28163588}.dialoginner{padding:27px}dialog ol{padding-left:24px}dialog li,dialog p{line-height:1.5}dialog li+li{margin-top:7px}dialog button{margin-top:4px}
@media(max-width:700px){.bar{padding:8px 18px;min-height:54px}main{padding:14px 14px 0}.hero{padding:18px 21px;min-height:150px;border-radius:20px}.artwork{min-width:115px;width:30%}.artwork img{height:126px}.intro h1{font-size:clamp(2.6rem,8.4vw,3.7rem)}.intro>p:last-child{font-size:.98rem;margin-top:9px}.game{padding:12px 12px 17px}.board{--cols:4;gap:8px}.card{aspect-ratio:1.03}.settings{padding-bottom:9px}.board[data-pairs="10"]{--cols:4}.levels button{padding:0 13px;min-height:40px}.status{padding:12px 2px}.series{font-size:.82rem}.s1{left:5%}.s2{right:0}}
@media(max-width:440px){.bar{padding:4px 16px}.brand{font-size:1.1rem}main{padding:10px 9px 0}.hero{padding:17px 14px;min-height:135px}.intro{max-width:66%}.intro h1{font-size:clamp(2.3rem,9.8vw,2.8rem);white-space:nowrap}.intro>p:last-child{font-size:.89rem;max-width:200px}.artwork{min-width:85px}.artwork img{height:100px}.game{margin-top:10px;border-radius:17px;padding:10px 9px 14px}.board{gap:7px}.back,.face,.card{border-radius:10px}.back:after{inset:3px;border-radius:6px}.levels{padding:2px}.levels button{padding:0 10px;font-size:.88rem}.shuffle{font-size:.86rem;gap:4px;padding-left:5px}.win{gap:8px;flex-wrap:wrap}.win img{width:40px;height:44px}.win h2{font-size:1.25rem}.win p{font-size:.9rem}.win button{margin-left:0}.series{font-size:.76rem}.s2{top:6%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.face img{position:absolute;inset:0;margin:auto}
