:root{--bg:#fffdf7;--fg:#1b1b1b;--muted:#3d3d3d;--brand:#1f4e8c;--card:#fff;--border:#d6d0c2;color:var(--fg);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:18px;line-height:1.5}*{box-sizing:border-box}body{min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);margin:0}.home{max-width:40rem;margin:0 auto;padding:1.5rem 1rem 3rem}h1{color:var(--brand);margin:.5rem 0;font-size:2.25rem}h2{margin-top:2rem;font-size:1.4rem}h3{margin:0 0 .25rem;font-size:1.15rem}.lead{font-size:1.15rem}.note{color:var(--muted)}.cards{gap:1rem;margin:0;padding:0;list-style:none;display:grid}.card{background:var(--card);border:2px solid var(--border);border-radius:1rem;padding:1rem 1.25rem}.card p{color:var(--muted);margin:0}@media (width>=48rem){.cards{grid-template-columns:1fr 1fr}}:focus-visible{outline:3px solid var(--brand);outline-offset:3px}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}h1[tabindex="-1"]:focus{outline:none}.card h2{margin:0 0 .25rem;font-size:1.2rem}.card-active{border-color:var(--brand);gap:.75rem;display:grid}.btn-start{background:var(--brand);color:#fff;border-radius:999px;justify-self:start;align-items:center;min-height:52px;padding:.5rem 1.5rem;font-weight:700;text-decoration:none;display:inline-flex}.btn-start:hover{background:#173d6f}.badge{color:var(--muted);vertical-align:middle;background:#ece7da;border-radius:999px;padding:.1rem .5rem;font-size:.8rem;font-weight:600;display:inline-block}.btn{font:inherit;border:2px solid var(--brand);background:var(--card);min-width:48px;min-height:48px;color:var(--brand);cursor:pointer;touch-action:manipulation;border-radius:999px;justify-content:center;align-items:center;gap:.35rem;padding:.5rem 1rem;font-weight:600;text-decoration:none;display:inline-flex}.btn:hover{background:#eef3fa}.btn-ghost{border-color:#0000;padding-inline:.5rem}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover{background:#173d6f}.btn-big{min-height:56px;padding-inline:1.5rem;font-size:1.15rem}.btn-round{width:56px;height:56px;padding:0;font-size:2rem;line-height:1}.btn-toggle[aria-pressed=true]{background:var(--brand);color:#fff}.btn-toggle[aria-pressed=true]:before{content:"✓"}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.btn:disabled{color:#4a4a4a;cursor:not-allowed;background:#ececec;border-color:#8a8a8a}.collect{--car:#b45309;--car-bg:#fff3e4;--doll:#0f766e;--doll-bg:#e4f6f3;--ok:#1d7a46;max-width:44rem;margin:0 auto;padding:.75rem 1rem 3rem}.collect-picker{box-sizing:border-box;min-height:100dvh;padding-bottom:1rem}.collect-picker .lead{margin:.4rem 0 0}.collect-picker h1{font-size:1.45rem}.collect-header{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.collect-header h1{margin:.25rem 0;font-size:1.6rem}.collect-header h1:focus{outline:none}.choice-list{grid-template-columns:1fr 1fr;gap:.75rem;margin:.75rem 0 0;padding:0;list-style:none;display:grid}@media (width<=26rem){.choice-list{grid-template-columns:1fr}}.choice{background:var(--card);border:3px solid var(--border);text-align:center;border-radius:1.25rem;align-content:start;gap:.5rem;padding:.75rem;display:grid}.choice h2{margin:0;font-size:1.5rem}.choice p{color:var(--muted);margin:0}.choice[data-collection=carrinhos]{border-color:var(--car);background:var(--car-bg)}.choice[data-collection=carrinhos] h2{color:var(--car)}.choice[data-collection=bonecas]{border-color:var(--doll);background:var(--doll-bg)}.choice[data-collection=bonecas] h2{color:var(--doll)}.choice[data-collection=carrinhos] .choice-btn{background:var(--car);border-color:var(--car)}.choice[data-collection=bonecas] .choice-btn{background:var(--doll);border-color:var(--doll)}.choice-art{place-items:center;height:5.5rem;display:grid}.choice-art svg{max-width:100%;max-height:100%}.choice-btn{width:100%}.choice-actions{flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem;display:flex}.owned-tag{font-weight:700;color:var(--ok)!important}.featured-tag{color:#8a5a00;align-items:center;min-height:48px;font-weight:700;display:inline-flex}.balance{margin:.5rem 0 0;font-size:1.3rem;font-weight:700}.seg{gap:.5rem;margin:.75rem 0 0;display:flex}.seg[hidden]{display:none}.seg-wrap{flex-wrap:wrap}.shop-status{min-height:1.5rem;color:var(--ok);margin:.75rem 0;font-weight:600}.item-grid{grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.item-card{background:var(--card);border:2px solid var(--border);border-radius:1rem;grid-template-rows:auto 1fr auto;gap:.4rem;padding:.75rem;display:grid}.item-card[data-state=owned]{border-color:var(--ok)}.item-card[data-state=pack]{background:#faf8f3;border-style:dashed}.item-art{place-items:center;height:6.5rem;display:grid}.item-art svg{max-width:100%;max-height:100%}.item-info p{margin:0}.item-name{margin:0;font-size:1.05rem}.item-slot{color:var(--muted);font-size:.9rem}.item-price{font-weight:700}.item-missing{color:#8a5a00;font-size:.9rem}.pack-tag{color:#4a3b00;background:#ece7da;border-radius:999px;padding:.1rem .6rem;font-size:.85rem;font-weight:700;display:inline-block;margin:.2rem 0!important}.item-action{width:100%}.using-tag,.pack-note{place-items:center;min-height:48px;margin:0;font-weight:700;display:grid}.using-tag{color:var(--ok)}.pack-note{color:var(--muted);font-size:.9rem}.shop-footer{margin-top:1.25rem}.showcase-stage{border:3px solid var(--border);background:var(--card);border-radius:1.25rem;place-items:center;height:14rem;margin:.75rem 0;display:grid}.collect-showcase[data-collection=carrinhos] .showcase-stage{background:var(--car-bg);border-color:var(--car)}.collect-showcase[data-collection=bonecas] .showcase-stage{background:var(--doll-bg);border-color:var(--doll)}.showcase-stage svg{max-width:90%;max-height:90%}.slot h2{margin:1rem 0 .4rem;font-size:1.15rem}.slot .note{margin:.3rem 0 0;font-size:.95rem}.slot-options{gap:.5rem;padding-bottom:.25rem;display:flex;overflow-x:auto}.slot-option{font:inherit;overflow-wrap:break-word;border:2px solid var(--border);background:var(--card);width:7.4rem;min-height:48px;color:var(--fg);cursor:pointer;touch-action:manipulation;text-align:center;border-radius:.9rem;flex:none;justify-items:center;gap:.25rem;padding:.5rem .35rem;font-size:.9rem;line-height:1.2;display:grid}.slot-option[aria-pressed=true]{border-color:var(--brand);background:#eef3fa;font-weight:700}.slot-option[aria-pressed=true]:after{content:"✓ usando";color:var(--brand);font-size:.8rem}.slot-thumb{place-items:center;width:100%;height:3.5rem;display:grid}.slot-thumb svg{max-width:100%;max-height:100%}.stats{grid-template-columns:repeat(3,1fr);gap:.5rem;margin:.75rem 0 1rem;padding:0;list-style:none;display:grid}.stat{background:var(--card);border:2px solid var(--border);text-align:center;border-radius:1rem;padding:.5rem}.stat-value{color:var(--brand);font-size:1.5rem;font-weight:800;display:block}.stat-label{color:var(--muted);font-size:.9rem}.shortcuts{flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;display:flex}.shortcut-art{place-items:center;width:2.5rem;height:2rem;display:inline-grid}.shortcut-art svg{max-width:100%;max-height:100%}.reward{color:#5c3b00;margin:0;font-size:1.15rem;font-weight:700}.reward-bonus{color:var(--ok,#1d7a46);margin:0;font-size:1rem;font-weight:600}.sheet{max-width:40rem;margin:0 auto;padding:1rem 1rem 3rem}.sheet-form{gap:1.25rem;margin-top:1rem;display:grid}.sheet-field{border:0;gap:.4rem;min-width:0;margin:0;padding:0;display:grid}.sheet-field>label,.sheet-field>legend{margin-bottom:.4rem;padding:0;font-size:1.05rem;font-weight:700}.sheet-field .note{margin:0;font-size:.95rem}.sheet-field input[type=text],.sheet-field input[type=number],.sheet-field textarea{font:inherit;min-height:52px;color:var(--fg);background:#fff;border:2px solid #6b6b6b;border-radius:12px;width:100%;padding:.5rem .75rem;font-size:1.15rem}.sheet-field textarea{resize:vertical;line-height:1.4}.sheet-field input:focus-visible,.sheet-field textarea:focus-visible,.sheet-option:focus-within{outline:3px solid var(--brand);outline-offset:2px}.sheet-options{flex-wrap:wrap;gap:.5rem;display:flex}.sheet-option{border:2px solid var(--brand);background:var(--card);min-height:52px;color:var(--brand);cursor:pointer;touch-action:manipulation;border-radius:999px;align-items:center;gap:.5rem;padding:.4rem 1rem;font-weight:600;display:inline-flex}.sheet-option input{width:1.25rem;height:1.25rem;accent-color:var(--brand);margin:0}.sheet-option:has(input:checked){background:var(--brand);color:#fff}.sheet-stepper{align-items:center;gap:.5rem;display:flex}.sheet-stepper input[type=number]{text-align:center;width:5.5rem}.sheet-warnings p{color:#5c2f00;background:#fff4e5;border-left:5px solid #b35c00;border-radius:6px;margin:0;padding:.6rem .9rem}.sheet-warnings{gap:.5rem;display:grid}.sheet-actions{flex-wrap:wrap;gap:.75rem;display:flex}.sheet-status{color:#1d5e33;margin:0;font-weight:600}.sheet-alert{color:#a1241b;margin:0;font-weight:600}.sheet [hidden]{display:none!important}.tracing{--ok:#1d7a46;--soft:#8a5a00;--soft-bg:#fff4df;grid-template:"header""stage"minmax(200px,1fr)"side"/minmax(0,1fr);gap:.75rem;max-width:44rem;min-height:100dvh;margin:0 auto;padding:.75rem;display:grid}.tracing-header{grid-area:header;align-items:center;gap:.75rem;display:flex}.tracing-header h1{margin:0;font-size:1.4rem}.tracing-header h1:focus{outline:none}.style-toggle{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.letter-nav{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.letter-current{text-align:center;flex-wrap:wrap;flex:1;justify-content:center;align-items:baseline;column-gap:.5rem;margin:0;display:flex}.letter-char{color:var(--brand);font-size:2rem;font-weight:700}.letter-char[data-style=cursiva]{font-style:italic}.letter-name{color:var(--muted)}.letter-done{color:var(--ok);font-weight:700}.stage{border:2px solid var(--border);background:#fff;border-radius:1rem;grid-area:stage;width:100%;height:auto;min-height:200px;position:relative;overflow:hidden}.trace-canvas{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:crosshair;width:100%;height:100%;display:block}.tracing-side{grid-area:side;align-content:start;gap:.75rem;display:grid}.hint{min-height:3rem;color:var(--fg);background:#eef3fa;border-radius:.75rem;margin:0;padding:.6rem .9rem;font-size:1.05rem}.hint[data-tone=ok]{color:#14532d;background:#e6f4ec}.hint[data-tone=soft]{background:var(--soft-bg);color:#5c3b00}.tracing-actions{gap:.5rem;display:flex}.celebration{text-align:center;background:#fffdf7e0;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;padding:1rem;display:flex;position:absolute;inset:0}.celebration[hidden]{display:none}.star{color:#e0a100;text-shadow:0 2px #9c6b00;font-size:5rem;line-height:1;animation:.5s ease-out star-pop}.celebration-text{color:var(--brand);margin:0;font-size:1.8rem;font-weight:700}.celebration-actions{flex-wrap:wrap;justify-content:center;gap:.75rem;display:flex}@keyframes star-pop{0%{opacity:0;transform:scale(.3)rotate(-30deg)}to{opacity:1;transform:scale(1)rotate(0)}}.picker{border:2px solid var(--border);background:var(--card);border-radius:.75rem}.picker summary{cursor:pointer;min-height:48px;color:var(--brand);padding:.6rem 1rem;font-weight:600}.picker-list{gap:.75rem;padding:0 .75rem .75rem;display:grid}.picker-heading{color:var(--fg);margin:0 0 .35rem;font-size:.95rem;font-weight:600}.picker-grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:.4rem;display:grid}.picker-item{font:inherit;border:2px solid var(--border);min-height:48px;color:var(--fg);cursor:pointer;background:#fff;border-radius:.6rem;font-size:1.3rem;position:relative}.picker-item[data-style=cursiva]{font-style:italic}.picker-item[aria-current=true]{border-color:var(--brand);background:#eef3fa;font-weight:700}.picker-star{color:#b07d00;font-size:.75rem;position:absolute;top:0;right:3px}@media (orientation:landscape) and (width>=36rem){.tracing{grid-template:"header header""stage side"1fr/minmax(0,1.4fr) minmax(16rem,1fr);max-width:72rem}.stage{height:auto;min-height:260px}.tracing-side{max-height:100%;overflow-y:auto}}
