@font-face{font-family:Nunito;src:url('./assets/nunito.woff2') format('woff2');font-weight:400 900;font-display:swap}
@font-face{font-family:Kalam;src:url('./assets/kalam.ttf') format('truetype');font-weight:700;font-display:swap}
:root{color-scheme:light;--ink:#312947;--muted:#686273;--purple:#7045c7;--line:#e2dce6;--paper:#faf9f6;font:100%/1.5 Nunito,ui-rounded,system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background-image:radial-gradient(#d6cec53d .8px,transparent .9px);background-size:8px 8px}
button,a,input{font:inherit;-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer;color:inherit}
button:disabled{cursor:wait}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible+span{outline:3px solid #5131a7;outline-offset:4px}
[hidden]{display:none!important}
h1,h2,p{margin:0}
.bar{background:#fffdfb;border-bottom:1px solid var(--line)}
.bar-inner,main{max-width:1184px;margin-inline:auto;padding-inline:clamp(20px,4vw,52px)}
.bar-inner{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:18px}
.brand{display:inline-flex;align-items:center;gap:12px;font-size:1.55rem;font-weight:900;letter-spacing:-1.2px;text-decoration:none}
.brand-icon{position:relative;width:36px;height:35px;display:inline-block;transform:rotate(-7deg)}
.brand-icon i,.brand-icon b,.brand-icon:before{position:absolute;border:2px solid #46305d;border-radius:5px;width:27px;height:27px;display:block}
.brand-icon:before{content:'';left:0;top:0;background:#f4bb76;transform:rotate(-12deg)}
.brand-icon i{left:6px;top:2px;background:#b8d9af;transform:rotate(9deg)}
.brand-icon b{left:5px;top:8px;display:grid;place-items:center;background:#a780da;color:#382251;font:700 23px/1 Kalam,cursive}
nav{display:flex;align-items:center;gap:9px}
nav a,.help,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:0;font-size:.95rem;font-weight:800}
nav a{min-height:44px;padding:9px 16px;color:#635c70;border-radius:13px}
nav a[aria-current=page]{color:#6741ad;background:#eee6f8}
nav a:hover,.help:hover,.secondary:hover{color:#6136a7;background:#f1ebf7}
.icon{display:inline-block;flex-shrink:0;width:1.23em;height:1.23em;vertical-align:middle;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
[data-icon]{display:inline-flex;align-items:center}
main{padding-block:32px 20px}
.hero{display:grid;grid-template-columns:1fr 1.04fr;position:relative;isolation:isolate;overflow:hidden;border:1.5px solid #dacbec;background:#eee5f8;border-radius:28px;box-shadow:0 3px 0 #e4daed}
.hero:after{content:'';position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#957aa654 .9px,transparent 1px);background-size:14px 14px;mask-image:linear-gradient(105deg,transparent 18%,#000 84%);opacity:.52;z-index:-1}
.hero-copy{padding:38px 0 40px clamp(28px,4vw,54px);position:relative;z-index:1}
.counter,.table-count{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#514164;font-weight:800;font-size:.84rem;line-height:1.3}
.counter{padding:6px 12px;border-radius:9px;border:1px solid #cbb7e1;background:#ffffff8c}
h1,h2{font-weight:900;letter-spacing:-.045em;line-height:1.1}
.hero h1{font-size:clamp(3.5rem,5.1vw,4.75rem);margin:16px 0 18px;line-height:.99}
.underline{position:relative;display:inline-block;z-index:0}
.underline:after{content:'';position:absolute;z-index:-1;width:102%;height:9px;bottom:0;left:1%;background:#ecc765;transform:rotate(-2.7deg);border-radius:50% 16% 38% 20%}
.hero p,.lead,.collection-head p,.settings-sheet fieldset p{color:#5b5468;font-size:1.06rem;line-height:1.5}
.hero p{max-width:340px;margin-bottom:22px}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--purple);border:1.5px solid #633bb7;border-bottom-color:#533393;border-radius:13px;box-shadow:0 3px 0 #50318d;color:white;font-weight:850;padding:13px 22px;min-height:49px;line-height:1.35;transition:background .16s,transform .16s,box-shadow .16s}
.primary:hover{background:#6339b6;transform:translateY(-1px)}
.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #50318d}
.hero-art{position:relative;display:grid;align-items:center;justify-items:center;min-width:0;margin:10px 4% 8px -2%}
.art-halo{width:85%;height:74%;position:absolute;background:#e1cef0;opacity:.72;border-radius:50% 48% 44% 51%;transform:rotate(-9deg)}
.box-art{display:block;width:78%;height:auto;position:relative;transform:rotate(3deg);filter:drop-shadow(0 11px 6px #512c7918);animation:arrive .6s ease-out}
.art-doodles{position:absolute;width:100%;height:auto;max-height:100%;overflow:visible}
.collection{margin-top:36px}
.collection-head,.game-heading,.dialog-head,.save-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.collection h2,.dialog-head h2, legend{font-size:clamp(1.5rem,2.6vw,1.95rem)}
.collection-head p{margin-top:5px;font-size:1rem}
.table-count{border:1px solid #ded9df;border-radius:99px;padding:4px 12px;color:#635d6a;background:#fffdf9}
.table-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:21px}
.theme-paper{--sheet:#f5e9c9;--edge:#decca5;--pen:#785f31;--wash:#d2b774}
.theme-orange{--sheet:#ffe1be;--edge:#e7ba8e;--pen:#874a23;--wash:#e5a271}
.theme-green{--sheet:#dcebcf;--edge:#b5caa6;--pen:#396341;--wash:#9bb786}
.theme-purple{--sheet:#e5dcf7;--edge:#c6b5df;--pen:#68468e;--wash:#ae91cf}
.table-card{position:relative;isolation:isolate;display:block;width:100%;padding:21px 22px 15px;text-align:left;color:var(--pen);background:var(--sheet);border:1.5px solid var(--edge);border-radius:15px 17px 14px 16px;box-shadow:0 3px 0 color-mix(in srgb,var(--edge) 70%,#fff);transition:transform .18s,box-shadow .18s}
.table-card:before,.flashcard:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:repeating-linear-gradient(0deg,transparent 0 21px,color-mix(in srgb,var(--wash) 22%,transparent) 21px 22px);opacity:.8}
.table-card:hover{transform:translateY(-4px) rotate(-.7deg);box-shadow:0 6px 0 color-mix(in srgb,var(--edge) 55%,#fff)}
.table-label{display:block;font-size:1.04rem;font-weight:850}
.mobile-number{display:none}
.table-number{display:block;font:700 3.9rem/1.12 Kalam,'Comic Sans MS',cursive;letter-spacing:-.09em;margin:2px 0 6px;transform:rotate(-4deg);transform-origin:left}
.sticker{position:absolute;right:24px;top:24px;width:60px;height:60px;transform:rotate(9deg);filter:drop-shadow(0 2px 0 #51405a26)}
.table-card.theme-green .sticker{transform:rotate(-10deg)}
.table-base{display:flex;align-items:center;gap:6px;font-weight:750;font-size:.85rem}
.table-play{margin-left:auto;width:27px;height:27px;border:1px solid var(--edge);border-radius:50%;display:grid;place-items:center;background:#ffffff66}
.table-play .icon{width:12px;height:12px}
footer{margin-top:24px;padding-top:12px;border-top:1px dashed #dcd5d9;display:flex;justify-content:center}
.help,.secondary,.icon-button{color:#655c72;background:transparent;border-radius:9px;min-height:44px}
.help{padding:7px 12px;font-size:.9rem}
.skip,.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;top:0;left:0;z-index:9;width:auto;height:auto;clip-path:none;background:white;padding:.75rem}
.inner-page{max-width:790px;margin:12px auto 35px}
.inner-page h1{font-size:clamp(2.3rem,5vw,3.6rem)}
.lead{margin-top:8px}
.settings-sheet{padding:clamp(20px,4vw,36px);background:#fffdfb;border:1px solid var(--line);border-radius:24px;margin-top:26px;box-shadow:0 4px 0 #e9e4ec}
fieldset{padding:0;border:0;margin:0;min-width:0}
legend{padding:0;font-weight:900;letter-spacing:-.035em}
.choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:22px 0 26px}
.choice{position:relative;cursor:pointer}
.choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice span{position:relative;display:grid;place-items:center;min-height:65px;border-radius:12px;background:#f8f6f4;border:2px dashed #cecad2;font:700 1.85rem/1 Kalam,cursive}
.choice input:checked+span{background:var(--sheet);border:2px solid var(--pen);color:var(--pen)}
.choice input:checked+span:after{content:'✓';position:absolute;top:2px;right:6px;font:bold .9rem Nunito,sans-serif}
.save-row{border-top:1px dashed var(--line);padding-top:22px}
.save-row>span,.note{color:var(--muted);font-size:.95rem}
.note{margin-top:14px}
.game-heading{align-items:end}
.game progress{display:block;width:100%;height:8px;appearance:none;border:none;border-radius:8px;overflow:hidden;margin:18px 0 24px;background:#e4dcec;color:#8a65ca}
progress::-webkit-progress-bar{background:#e4dcec}
progress::-webkit-progress-value{background:#8a65ca;border-radius:8px}
progress::-moz-progress-bar{background:#8a65ca}
.play-surface{display:grid;grid-template-columns:3fr 1fr;align-items:center;gap:28px;background:#eee8f5;background-image:radial-gradient(#d4c9de .9px,transparent 1px);background-size:14px 14px;border:1px solid #dfd5e7;border-radius:24px;padding:44px 5%}
.flashcard{position:relative;isolation:isolate;text-align:center;display:grid;justify-items:center;align-content:center;min-height:218px;border:1.5px solid var(--edge);border-radius:10px 15px 9px 12px;background:var(--sheet);color:var(--pen);box-shadow:2px 6px 0 #4a35531a;transform:rotate(-2deg)}
.flashcard>span:not(.tape){font-weight:800}
.flashcard strong{font:700 clamp(2.8rem,5.8vw,4.5rem)/1.35 Kalam,cursive;margin:10px 0 0;letter-spacing:-.065em;white-space:nowrap}
.tape{position:absolute;top:-10px;width:62px;height:21px;background:#fff6cebc;transform:rotate(4deg);border-left:2px dashed #ddcb9d;border-right:2px dashed #ddcb9d}
.pencil-line{width:62px;height:3px;border-radius:50%;background:var(--wash)}
.return-box{font-size:.85rem;font-weight:800;color:#665274;text-align:center;display:grid;justify-items:center;gap:5px}
.return-box img{width:100%;max-width:136px;height:auto}
.game-actions{text-align:center;margin-top:25px}
.finished{text-align:center;background:#eee5f8;border:1px solid #dbcaeb;border-radius:26px;padding:44px 20px}
.finish-star{display:block;width:88px;margin:0 auto 16px;animation:arrive .5s ease-out}
.finished p{margin:10px auto 22px}
.secondary{padding:8px 15px;margin:5px}
dialog{border:1px solid #d4c8e1;border-radius:23px;color:var(--ink);padding:25px;background:#fffdfb;width:min(450px,calc(100% - 32px));box-shadow:0 20px 80px #27182a30;max-height:85dvh}
dialog::backdrop{background:#30233e72}
html:has(dialog[open]){overflow:hidden}
.icon-button{border:1px solid var(--line);min-width:44px;display:grid;place-items:center}
dialog ol{padding-left:1.7em;line-height:1.7}dialog li::marker{font-weight:900;color:#7045c7}dialog p{color:var(--muted)}
@keyframes arrive{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@media(min-width:1450px){main{padding-top:43px}.hero-copy{padding-block:45px}.collection{margin-top:42px}}
@media(max-width:740px){.bar-inner,main{padding-inline:20px}.bar-inner{min-height:66px}.brand{font-size:1.3rem;gap:8px}nav{gap:0}nav a{padding:9px 10px}.hero-copy{padding:28px 0 32px 27px}.hero h1{font-size:3.6rem}.hero p{font-size:1rem}.table-cards{gap:12px}.table-card{padding:15px 14px 12px}.sticker{right:12px;top:18px;width:42px;height:42px}.table-number{font-size:3.3rem}.collection{margin-top:28px}.hero-art{margin-right:0}.box-art{width:87%}}
@media(max-width:570px){.bar-inner{flex-wrap:wrap;gap:5px;padding-block:9px;justify-content:center}.brand{margin-right:auto}.bar-inner nav{margin-left:auto}nav a{font-size:.85rem;padding-inline:9px}nav a .icon{width:17px;height:17px}.brand-icon{width:29px;scale:.86;transform-origin:left center}.bar-inner,main{padding-inline:15px}main{padding-top:18px}.hero{grid-template-columns:1fr;border-radius:22px}.hero-copy{padding:23px 22px 0}.hero h1{font-size:clamp(2.7rem,10vw,3.5rem);margin:14px 0 11px}.hero h1 br{display:none}.hero h1 br:after{content:' '}.hero h1 .underline{margin-left:.18em}.hero p{max-width:32ch;margin-bottom:15px}.hero-art{margin:-2px 0 3px;height:168px;width:100%;max-width:350px;justify-self:center}.box-art{width:62%;max-height:163px;object-fit:contain}.art-doodles{width:86%;height:100%}.art-halo{width:64%;height:83%}.collection{margin-top:26px}.collection h2{font-size:1.65rem}.table-cards{grid-template-columns:1fr;gap:12px;margin-top:16px}.table-card{min-height:88px;padding:10px 16px 10px 88px;display:flex;flex-direction:column;justify-content:center}.table-number{position:absolute;left:19px;top:50%;margin:0;transform:translateY(-44%) rotate(-5deg);font-size:3rem}.table-label{font-size:1.15rem}.sticker{width:42px;height:42px;right:48px;top:50%;translate:0 -50%}.table-play{position:absolute;right:14px;top:50%;transform:translateY(-50%)}.table-base{margin-top:3px}.collection-head p{font-size:.95rem}footer{margin-top:20px}.inner-page{margin-top:6px}.choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.choice span{min-height:52px}.save-row{flex-wrap:wrap}.game-heading{align-items:start;flex-direction:column;gap:10px}.play-surface{grid-template-columns:1fr;gap:15px;padding:31px 7% 12px}.flashcard{min-height:165px}.return-box{grid-template-columns:60px auto;align-items:center;justify-content:center;gap:8px}.game-actions{margin-top:18px}}
@media(max-width:385px){.bar-inner{gap:2px}.brand{font-size:1.13rem;gap:4px}nav a{gap:5px;font-size:.81rem;padding-inline:6px}.hero-art{height:145px}.hero-copy{padding-inline:18px}.table-count{padding-inline:8px}.choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:570px){.bar-inner{flex-wrap:nowrap;min-height:62px}.brand{font-size:1.25rem}.bar-inner nav a{padding-inline:12px;gap:7px;font-size:.9rem}.bar-inner #box-link{display:none}.mobile-number{display:inline}.hero-art{margin-top:8px}}
