:root{--font-ui:-apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-family:var(--font-ui);--bg-gradient:linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 45%, #fefce8 100%);--text-main:#1e293b;--text-muted:#64748b;--primary-color:#6366f1;--primary-hover:#4f46e5;--space-xs:clamp(4px, 1vw, 8px);--space-sm:clamp(8px, 2vw, 14px);--space-md:clamp(14px, 3vw, 24px);--space-lg:clamp(20px, 4vw, 36px);--space-xl:clamp(28px, 6vw, 48px);box-sizing:border-box;margin:0;padding:0}*,:before,:after{box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}html,body{width:100%;min-height:100dvh;font-family:var(--font-ui);color:var(--text-main);background:var(--bg-gradient);background-attachment:fixed;margin:0;padding:0;overflow-x:hidden}body{background-image:radial-gradient(#cbd5e1 1.5px, transparent 1.5px), var(--bg-gradient);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);background-size:28px 28px,100% 100%;flex-direction:column;display:flex}#root{flex-direction:column;flex:1;min-height:100dvh;display:flex}.app-container{flex-direction:column;flex:1;width:100%;display:flex;position:relative}:focus-visible{outline-offset:3px;border-radius:6px;outline:3px solid #1d4ed8}.tool-card:focus-visible,.letter-btn:focus-visible,.action-btn:focus-visible,.scramble-letter-tile:focus-visible,.scramble-slot:focus-visible,.shape-select-card:focus-visible{outline-offset:4px}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}.path-animate{stroke-dashoffset:0}.shape-start-dot{opacity:.55}}.glass-panel{-webkit-backdrop-filter:blur(12px);background:#ffffffe0;border:3px solid #fffffff2;border-radius:28px;box-shadow:0 10px 30px -5px #0000000f,0 4px 12px #0000000a}.global-nav-bar{z-index:100;align-items:center;gap:8px;display:flex;position:fixed;top:clamp(10px,2.5vw,18px);left:clamp(10px,2.5vw,18px)}.global-nav-right{z-index:100;align-items:center;gap:8px;display:flex;position:fixed;top:clamp(10px,2.5vw,18px);right:clamp(10px,2.5vw,18px)}.home-btn,.sound-toggle-btn{cursor:pointer;color:#334155;background:#ffffffeb;border:2px solid #fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:clamp(42px,9vw,50px);height:clamp(42px,9vw,50px);transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s;display:flex;box-shadow:0 4px 14px #0000001a}@media (hover:hover){.home-btn:hover,.sound-toggle-btn:hover{transform:scale(1.08);box-shadow:0 6px 20px #00000026}}.home-btn:active,.sound-toggle-btn:active{transform:scale(.95)}.action-btn{cursor:pointer;white-space:nowrap;border:none;border-radius:50px;justify-content:center;align-items:center;min-height:46px;padding:clamp(12px,2.8vw,16px) clamp(22px,5vw,36px);font-size:clamp(.95rem,2.5vw,1.1rem);font-weight:700;transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s,opacity .2s;display:inline-flex}@media (hover:hover){.action-btn:hover:not(:disabled){transform:translateY(-2px)scale(1.03)}}.action-btn:active:not(:disabled){transform:scale(.96)}.action-btn:disabled{opacity:.45;cursor:not-allowed}.btn-start{color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6);box-shadow:0 8px 22px #6366f159}.btn-clear{color:#fff;background:#ef4444;box-shadow:0 4px 14px #ef444440}.btn-check{color:#fff;background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 6px 18px #10b9814d}.btn-next{color:#fff;background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 6px 18px #3b82f64d}.btn-replay{color:#fff;background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 6px 18px #f59e0b4d}.btn-random-shape{color:#fff;background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 6px 18px #10b9814d}.tools-menu-container{flex-direction:column;flex:1;justify-content:flex-start;align-items:center;gap:clamp(16px,3vw,26px);width:100%;max-width:900px;margin:0 auto;padding:clamp(60px,9vw,84px) clamp(16px,4vw,32px) clamp(24px,5vw,48px);display:flex}.tools-section{flex-direction:column;gap:clamp(8px,1.5vw,14px);width:100%;display:flex}.tools-section-title{color:#475569;letter-spacing:.01em;align-items:center;gap:10px;margin:0;padding-left:4px;font-size:clamp(.95rem,2.4vw,1.15rem);font-weight:800;display:flex}.tools-section-title:after{content:"";background:linear-gradient(90deg,#94a3b873,#94a3b800);border-radius:2px;flex:1;height:2px}.tools-main-title{color:#1e293b;text-align:center;letter-spacing:-.02em;margin:0;font-size:clamp(1.6rem,4.5vw,2.4rem);font-weight:900}.tools-cards-grid{grid-template-columns:repeat(auto-fill,minmax(clamp(132px,21vw,188px),1fr));gap:clamp(10px,1.8vw,18px);width:100%;display:grid}.tool-card{cursor:pointer;text-align:center;border-style:solid;border-width:3px;border-radius:24px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:clamp(14px,2.2vw,20px) clamp(8px,1.4vw,14px);font-family:inherit;transition:transform .24s cubic-bezier(.34,1.56,.64,1),box-shadow .24s;display:flex;box-shadow:0 10px 26px -8px #0000001f}@media (hover:hover){.tool-card:hover{transform:translateY(-6px)scale(1.02);box-shadow:0 20px 40px #0000001a}}.tool-card:active{transform:scale(.97)}.tool-card-icon{font-size:clamp(2rem,5vw,2.8rem);line-height:1.1}.tool-card-title{letter-spacing:-.01em;font-size:clamp(.95rem,2.2vw,1.15rem);font-weight:900;line-height:1.2}.tool-card-subtitle{color:#475569;font-size:clamp(.7rem,1.5vw,.82rem);font-weight:600}.stage-container{width:100%;max-width:680px;padding:clamp(54px, 8vw, 70px) var(--space-md) clamp(16px, 3vw, 28px);justify-content:flex-start;align-items:center;gap:var(--space-sm);--stage-chrome:312px;flex-direction:column;flex:1;margin:0 auto;display:flex}.stage-container:has(.shape-tracker-pill){--stage-chrome:352px}.stage-container:has(.pen-color-picker){--stage-chrome:467px}.stage-header{flex-shrink:0;justify-content:space-between;align-items:center;width:100%;margin-bottom:4px;display:flex}.back-btn{cursor:pointer;background:#fff;border:2px solid #ffffffe6;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:clamp(42px,9vw,50px);height:clamp(42px,9vw,50px);transition:transform .2s cubic-bezier(.34,1.56,.64,1);display:flex;box-shadow:0 4px 12px #00000014}@media (hover:hover){.back-btn:hover{transform:scale(1.08)}}.back-btn:active{transform:scale(.95)}.tool-header-title-badge{background:#fff;border:2px solid #fff;border-radius:50px;align-items:center;gap:8px;padding:6px 18px;display:flex;box-shadow:0 2px 10px #0000000f}.stage-title{white-space:nowrap;font-size:clamp(1.15rem,4vw,1.5rem);font-weight:800}.shape-icon-badge{font-size:1.35rem}.settings-toggle-btn{cursor:pointer;background:#fff;border:2px solid #ffffffe6;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:clamp(42px,9vw,50px);height:clamp(42px,9vw,50px);transition:transform .2s cubic-bezier(.34,1.56,.64,1);display:flex;position:relative;box-shadow:0 4px 12px #00000014}@media (hover:hover){.settings-toggle-btn:hover{transform:scale(1.08)}}.settings-toggle-btn:active{transform:scale(.95)}.settings-badge-count{color:#fff;background:#6366f1;border-radius:10px;padding:2px 7px;font-size:.72rem;font-weight:800;position:absolute;top:-4px;right:-4px}.shapes-mode-tabs{background:#ffffffe6;border-radius:50px;flex-wrap:wrap;justify-content:center;gap:6px;padding:5px;display:flex;box-shadow:0 4px 14px #0000000f}.shapes-tab-btn{color:#475569;cursor:pointer;background:0 0;border:none;border-radius:50px;align-items:center;gap:6px;min-height:44px;padding:8px 18px;font-size:.88rem;font-weight:700;transition:all .2s;display:flex}.shapes-tab-btn.active{color:#fff;background:#1e293b;box-shadow:0 2px 10px #0000002e}.pen-color-picker{background:#ffffffe6;border-radius:50px;align-items:center;gap:10px;padding:6px 16px;display:flex;box-shadow:0 2px 8px #0000000d}.pen-picker-label{color:#475569;font-size:.84rem;font-weight:700}.pen-swatches{gap:8px;display:flex}.pen-swatch{cursor:pointer;border:2.5px solid #fff;border-radius:50%;width:24px;height:24px;transition:transform .18s;box-shadow:0 2px 6px #00000026}.pen-swatch.selected{border-color:#1e293b;transform:scale(1.3)}.canvas-wrapper{width:100%;max-width:min(540px, 100dvh - var(--stage-chrome,250px), 92vw);aspect-ratio:1;background:#fff;border-radius:32px;flex-shrink:0;min-width:0;position:relative;overflow:hidden;box-shadow:0 16px 36px #00000014,inset 0 0 20px #00000008}.canvas-element{touch-action:none;border-radius:32px;width:100%;height:100%;position:absolute;top:0;left:0}.svg-guide{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}.shapes-grid-background{pointer-events:none;z-index:0;position:absolute;inset:0}.grid-line-h,.grid-line-v{background:#e2e8f0;position:absolute}.grid-line-h{width:100%;height:2px;left:0}.grid-line-v{width:2px;height:100%;top:0}.grid-line-h.line-top{top:20%}.grid-line-h.line-bottom{top:80%}.grid-line-v.line-center{left:50%}.grid-line-h.line-mid{background:#cbd5e1;height:3px;top:50%}.shape-start-dot{transform-box:fill-box;transform-origin:50%;animation:2.4s ease-in-out infinite start-dot-pulse}@keyframes start-dot-pulse{0%,to{opacity:.3;transform:scale(1)}50%{opacity:.65;transform:scale(1.25)}}.canvas-nudge-pill{z-index:3;color:#fff;text-align:center;pointer-events:none;background:#1e293b;border-radius:50px;max-width:calc(100% - 32px);padding:10px 18px;font-size:.9rem;font-weight:700;line-height:1.35;animation:.25s ease-out nudge-in;position:absolute;bottom:16px;left:50%;transform:translate(-50%);box-shadow:0 8px 20px #0000002e}@keyframes nudge-in{0%{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%)}}.path-animate{stroke-dasharray:1;stroke-dashoffset:1px;animation:3.2s ease-in-out forwards draw}@keyframes draw{to{stroke-dashoffset:0}}@keyframes move-dot{0%{offset-distance:0%;opacity:0}2%{opacity:1}98%{opacity:1}to{offset-distance:100%;opacity:0}}.controls,.shapes-controls{flex-wrap:wrap;flex-shrink:0;justify-content:center;align-items:center;gap:12px;width:100%;margin-top:4px;display:flex}.btn-secondary-round{color:#334155;background:#fff;border-radius:50%;justify-content:center;align-items:center;width:46px;height:46px;padding:0;font-size:1.2rem;display:flex;box-shadow:0 4px 12px #00000014}.shape-tracker-pill{color:#64748b;background:#ffffffbf;border-radius:20px;padding:4px 16px;font-size:.84rem;font-weight:600}.menu-screen-container{flex-direction:column;flex:1;align-items:center;gap:20px;width:100%;max-width:960px;margin:0 auto;padding:clamp(56px,8vw,84px) clamp(16px,4vw,32px) clamp(30px,6vw,60px);display:flex}.menu-grid{grid-template-columns:repeat(auto-fill,minmax(clamp(68px,18vw,110px),1fr));gap:clamp(10px,2.5vw,18px);width:100%;margin:0 auto;display:grid}.letter-btn{aspect-ratio:1;cursor:pointer;border-width:2.5px;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;padding:8px;transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s;display:flex;box-shadow:0 4px 12px #0000000f}@media (hover:hover){.letter-btn:hover{transform:translateY(-4px)scale(1.06);box-shadow:0 10px 22px #0000001f}}.letter-btn:active{transform:scale(.95)}.letter-btn span:first-child{font-size:clamp(1.2rem,3.5vw,1.7rem);font-weight:800;line-height:1}.letter-btn-other{opacity:.45;margin-left:.22em;font-size:.62em;font-weight:700}.letter-btn .icon{margin-top:4px;font-size:clamp(1rem,2.5vw,1.4rem)}.feedback-modal,.shapes-settings-modal-overlay{-webkit-backdrop-filter:blur(10px);z-index:200;padding:var(--space-md);background:#0f172a73;justify-content:center;align-items:center;animation:.25s ease-out fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.feedback-content{text-align:center;background:#fff;border:4px solid;border-radius:32px;width:100%;max-width:480px;padding:clamp(28px,6vw,44px);box-shadow:0 25px 50px #0003}.feedback-content h1{margin:0 0 8px;font-size:clamp(1.8rem,6vw,2.6rem);font-weight:900}.feedback-content p{color:#475569;margin:0;font-size:1.05rem}.shapes-settings-modal{background:#fff;border-radius:32px;flex-direction:column;width:100%;max-width:660px;max-height:88vh;display:flex;overflow:hidden;box-shadow:0 25px 50px -12px #00000040}.settings-modal-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.settings-modal-header h2{color:#1e293b;margin:0;font-size:clamp(1.1rem,3.5vw,1.4rem);font-weight:800}.close-modal-btn{cursor:pointer;color:#64748b;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:6px;display:flex}.close-modal-btn:hover{background:#f1f5f9}.settings-quick-actions{background:#f8fafc;flex-shrink:0;gap:8px;padding:12px 24px;display:flex;overflow-x:auto}.quick-chip-btn{color:#475569;cursor:pointer;white-space:nowrap;background:#fff;border:1.5px solid #e2e8f0;border-radius:50px;padding:6px 14px;font-size:.82rem;font-weight:700;transition:all .15s}.quick-chip-btn.active,.quick-chip-btn:hover{color:#6366f1;background:#eef2ff;border-color:#6366f1}.shapes-selection-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;padding:20px 24px;display:grid;overflow-y:auto}.shape-select-card{cursor:pointer;background:#f8fafc;border:2px solid #e2e8f0;border-radius:20px;flex-direction:column;align-items:center;padding:12px 8px;font-family:inherit;transition:all .18s;display:flex;position:relative}.shape-select-card.selected{background:#fff;box-shadow:0 6px 16px #0000000f}.shape-select-checkbox{color:#fff;background:#10b981;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:.75rem;font-weight:900;display:flex;position:absolute;top:8px;right:8px}.mini-shape-svg{width:48px;height:48px;margin:6px 0}.shape-select-name{color:#334155;text-align:center;font-size:.8rem;font-weight:700}.settings-modal-footer{background:#fff;border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.selected-summary-text{color:#64748b;font-size:.88rem}.arrow-card-view{flex-direction:column;align-items:center;gap:22px;width:100%;display:flex}.arrow-hero-card{aspect-ratio:1;background:#fff;border-width:4px;border-radius:36px;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:440px;padding:24px;animation:.3s cubic-bezier(.34,1.56,.64,1) scaleIn;display:flex;position:relative;box-shadow:0 16px 36px #00000014}@keyframes scaleIn{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}.arrow-graphic-wrapper{justify-content:center;align-items:center;width:68%;height:68%;transition:transform .4s cubic-bezier(.34,1.56,.64,1);display:flex}.arrow-svg-element{filter:drop-shadow(0 6px 12px #0000001f);width:100%;height:100%}.arrow-labels-container{flex-direction:column;align-items:center;gap:4px;margin-top:10px;display:flex}.arrow-dir-label{letter-spacing:-.01em;font-size:clamp(1.35rem,4vw,1.75rem);font-weight:800}.arrow-col-label{color:#64748b;font-size:.95rem}.arrow-controls-row{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.arrow-grid-view{flex-direction:column;align-items:center;gap:20px;width:100%;display:flex}.grid-size-selector{color:#475569;border-radius:50px;align-items:center;gap:8px;padding:6px 16px;font-size:.88rem;font-weight:700;display:flex}.grid-size-btn{cursor:pointer;color:#334155;background:#fff;border:1.5px solid #e2e8f0;border-radius:50%;width:32px;height:32px;font-weight:800;transition:all .15s}.grid-size-btn.active{color:#fff;background:#f59e0b;border-color:#f59e0b}.arrows-matrix-grid{background:#fff;border-radius:28px;gap:12px;width:100%;max-width:520px;padding:18px;display:grid}.matrix-arrow-cell{aspect-ratio:1;border:2px solid;border-radius:18px;justify-content:center;align-items:center;display:flex;position:relative;box-shadow:0 4px 10px #0000000d}.cell-number{color:#94a3b8;font-size:.75rem;font-weight:800;position:absolute;top:6px;left:8px}.matrix-arrow-rotator{justify-content:center;align-items:center;width:60%;height:60%;display:flex}.matrix-arrow-svg{filter:drop-shadow(0 2px 4px #0000001a);width:100%;height:100%}.arrow-quiz-view{flex-direction:column;align-items:center;gap:18px;width:100%;display:flex}.quiz-score-badge{color:#334155;border-radius:50px;padding:6px 18px;font-size:.95rem}.arrow-quiz-card{text-align:center;background:#fff;border-width:4px;border-radius:28px;flex-direction:column;align-items:center;width:100%;max-width:380px;padding:24px;display:flex}.arrow-svg-element.quiz-size{width:110px;height:110px}.quiz-instruction{color:#1e293b;margin:12px 0 0;font-size:1.15rem;font-weight:800}.quiz-options-grid{grid-template-columns:repeat(2,1fr);gap:12px;width:100%;max-width:380px;display:grid}.quiz-dir-btn{cursor:pointer;color:#1e293b;border:2px solid #fff;border-radius:20px;justify-content:center;align-items:center;gap:10px;padding:14px 18px;font-size:1rem;font-weight:800;transition:transform .18s,background-color .18s;display:flex}.quiz-dir-btn:hover:not(:disabled){background:#f1f5f9;transform:scale(1.05)}.quiz-btn-icon{font-size:1.3rem}.quiz-feedback-toast{border-radius:50px;padding:10px 24px;font-size:1.05rem;font-weight:800;animation:.2s fadeIn}.quiz-feedback-toast.correct{color:#fff;background:#10b981}.quiz-feedback-toast.wrong{color:#fff;background:#ef4444}.settings-section{border-bottom:1px solid #f1f5f9;flex-direction:column;gap:12px;padding:16px 24px;display:flex}.settings-section h3{color:#334155;margin:0;font-size:.95rem;font-weight:800}.directions-selection-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;display:grid}.dir-select-pill{cursor:pointer;color:#475569;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:14px;align-items:center;gap:8px;padding:8px 12px;font-size:.85rem;font-weight:700;transition:all .15s;display:flex}.dir-select-pill.selected{color:#4338ca;background:#eef2ff;border-color:#6366f1}.colors-selection-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;display:grid}.color-select-pill{cursor:pointer;color:#334155;border:2px solid;border-radius:14px;align-items:center;gap:8px;padding:8px 12px;font-size:.82rem;font-weight:700;display:flex}.color-swatch-dot{border-radius:50%;width:14px;height:14px}.text-link-btn{color:#6366f1;cursor:pointer;background:0 0;border:none;font-size:.85rem;font-weight:700}.settings-checkbox-label{color:#334155;cursor:pointer;align-items:center;gap:8px;font-size:.9rem;font-weight:600;display:flex}.scramble-play-card{flex-direction:column;align-items:center;gap:clamp(12px,2.5vw,22px);width:calc(100% - 24px);max-width:680px;margin:clamp(8px,1.5vw,14px) auto;padding:clamp(16px,3vw,32px) clamp(16px,3vw,36px);display:flex}.scramble-image-wrapper{justify-content:center;align-items:center;display:flex;position:relative}.scramble-illustration-circle{border:4px solid;border-radius:50%;justify-content:center;align-items:center;width:clamp(112px,20vw,164px);height:clamp(112px,20vw,164px);display:flex}.scramble-emoji-display{-webkit-user-select:none;user-select:none;width:72%;height:72%;font-size:clamp(52px,9vw,82px);line-height:1}.scramble-hint-text{color:#64748b;text-align:center;background:#00000006;border:1px solid #00000012;border-radius:14px;max-width:480px;margin:0;padding:8px 14px;font-size:clamp(12px,2vw,14px);line-height:1.55}.scramble-slots-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:clamp(5px,1.5vw,10px);min-height:64px;display:flex}.scramble-slots-row.shake{animation:.55s ease-in-out scramble-shake}@keyframes scramble-shake{0%,to{transform:translate(0)}15%{transform:translate(-8px)}30%{transform:translate(8px)}45%{transform:translate(-6px)}60%{transform:translate(6px)}75%{transform:translate(-4px)}90%{transform:translate(4px)}}.scramble-slot{cursor:pointer;background:#fff6;border:3px solid #cbd5e1;border-radius:12px;justify-content:center;align-items:center;width:clamp(42px,7.5vw,58px);height:clamp(50px,9.5vw,66px);padding:0;font-family:inherit;transition:transform .15s,box-shadow .15s,border-color .15s;display:flex;box-shadow:0 2px 8px #0000000f}.scramble-slot.empty{border-style:dashed;border-width:2.5px}.scramble-slot.filled:hover{transform:scale(1.08);box-shadow:0 4px 14px #00000024}.scramble-slot-char{letter-spacing:-.5px;font-size:clamp(20px,4vw,32px);font-weight:800;line-height:1;font-family:var(--font-ui)}.scramble-slot-placeholder{color:#cbd5e1;font-size:clamp(18px,3.5vw,28px);font-weight:700;line-height:1}.scramble-tiles-section{flex-direction:column;align-items:center;gap:10px;width:100%;display:flex}.scramble-pool-title{color:#475569;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;font-size:clamp(12px,1.8vw,14px);font-weight:600;display:flex}.scramble-extra-badge{color:#16a34a;background:#f0fdf4;border:1.5px solid #86efac;border-radius:20px;padding:2px 10px;font-size:11px;font-weight:700}.scramble-tiles-grid{flex-wrap:wrap;justify-content:center;gap:clamp(6px,1.5vw,10px);display:flex}.scramble-letter-tile{cursor:pointer;letter-spacing:-.5px;width:clamp(44px,8.5vw,60px);height:clamp(52px,10vw,68px);font-size:clamp(20px,4vw,32px);font-weight:800;font-family:var(--font-ui);-webkit-user-select:none;user-select:none;color:#1e293b;background:#fff;border:2.5px solid #e2e8f0;border-radius:12px;justify-content:center;align-items:center;transition:transform .15s,box-shadow .15s,opacity .2s,background .15s;display:flex;box-shadow:0 3px 10px #00000014,0 1px 3px #0000000d}.scramble-letter-tile:not(.used):hover{background:#f8fafc;transform:translateY(-4px)scale(1.08);box-shadow:0 8px 24px #00000024}.scramble-letter-tile:not(.used):active{transform:translateY(-1px)scale(1.03)}.scramble-letter-tile.used{opacity:.28;cursor:default;box-shadow:none;background:#f1f5f9;border-color:#0000;transform:none}.scramble-feedback-banner{text-align:center;border-radius:14px;width:100%;padding:12px 18px;font-size:clamp(13px,2vw,15px);font-weight:600;animation:.3s ease-out scramble-banner-in}@keyframes scramble-banner-in{0%{opacity:0;transform:translateY(6px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.scramble-feedback-banner.success{color:#15803d;background:#f0fdf4;border:2px solid #86efac}.scramble-feedback-banner.error{color:#b91c1c;background:#fef2f2;border:2px solid #fca5a5}.settings-section{flex-direction:column;gap:8px;width:100%;display:flex}.settings-label{color:#334155;padding:0 2px;font-size:14px;font-weight:700}.settings-toggle-row{flex-direction:column;gap:10px;display:flex}.settings-checkbox-label{color:#475569;cursor:pointer;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:12px;align-items:center;gap:10px;padding:8px 12px;font-size:14px;transition:background .15s;display:flex}.settings-checkbox-label:hover{background:#eff6ff}.settings-checkbox-label input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary-color);cursor:pointer;flex-shrink:0}.quick-chip-btn.active{background:var(--primary-color);color:#fff;border-color:var(--primary-color);font-weight:700}.btn-hint{color:#92400e;background:linear-gradient(135deg,#fef3c7,#fde68a);border:2px solid #f59e0b}.btn-hint:hover{background:linear-gradient(135deg,#fde68a,#fcd34d)}.picture{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;flex-shrink:0;display:block}.picture-glyph{line-height:1;display:inline-block}.star-badge{flex-shrink:0;align-items:center;gap:1px;line-height:1;display:inline-flex}.star-badge-star.earned{color:#f59e0b}.star-badge-star.empty{color:#64748b59}.star-badge-xs{font-size:.72rem}.star-badge-sm{font-size:.95rem}.star-badge-lg{font-size:1.4rem}.star-counter-btn{cursor:pointer;color:#b45309;background:#ffffffeb;border:2px solid #fff;border-radius:50px;flex-shrink:0;align-items:center;gap:5px;height:clamp(42px,9vw,50px);padding:0 14px;font-family:inherit;font-size:.95rem;font-weight:800;transition:transform .2s cubic-bezier(.34,1.56,.64,1);display:flex;box-shadow:0 4px 14px #0000001a}@media (hover:hover){.star-counter-btn:hover{transform:scale(1.06)}}.star-counter-btn:active{transform:scale(.95)}.star-counter-icon{font-size:1.05rem}.sticker-book-container{justify-content:flex-start;max-width:760px}.sticker-summary{text-align:center;border-radius:24px;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 16px;padding:12px 20px;display:flex}.sticker-summary-stars{color:#b45309;font-size:1.35rem;font-weight:900}.sticker-summary-text{color:#475569;font-size:.92rem;font-weight:600}.sticker-summary-next{color:#92400e;background:#f59e0b24;border-radius:50px;padding:4px 12px;font-size:.85rem;font-weight:700}.sticker-grid{grid-template-columns:repeat(auto-fill,minmax(clamp(84px,14vw,118px),1fr));gap:clamp(10px,2vw,16px);width:100%;display:grid}.sticker-card{text-align:center;background:#fff;border:3px solid #fde68a;border-radius:22px;flex-direction:column;align-items:center;gap:4px;padding:14px 8px;display:flex;box-shadow:0 6px 16px #0000000f}.sticker-card.locked{background:#f8fafc;border-color:#e2e8f0}.sticker-card.locked .sticker-emoji{filter:grayscale();opacity:.4}.sticker-emoji{width:clamp(2.4rem,6.5vw,3.2rem);height:clamp(2.4rem,6.5vw,3.2rem);font-size:clamp(2.2rem,6vw,3rem);line-height:1.1}.sticker-label{color:#334155;font-size:.8rem;font-weight:800}.sticker-cost{color:#92400e;font-size:.75rem;font-weight:700}.sticker-card.locked .sticker-cost{color:#64748b}.sticker-unlock-content{max-width:420px}.sticker-unlock-emoji{width:clamp(4rem,16vw,6rem);height:clamp(4rem,16vw,6rem);margin:6px auto 4px;font-size:clamp(4rem,16vw,6rem);line-height:1.1;animation:.5s cubic-bezier(.34,1.56,.64,1) sticker-pop;display:block}@keyframes sticker-pop{0%{opacity:0;transform:scale(.3)rotate(-12deg)}to{opacity:1;transform:scale(1)rotate(0)}}.sticker-unlock-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:16px;display:flex}.find-target{border-radius:50px;align-items:center;gap:clamp(10px,2.5vw,18px);padding:10px 20px;display:flex}.find-target-label{color:#475569;font-size:clamp(.85rem,2.2vw,1rem);font-weight:700}.find-target-letter{color:#0e7490;align-items:center;gap:8px;padding:0 4px;font-family:inherit;font-size:clamp(2rem,6vw,2.8rem);font-weight:900;line-height:1;display:inline-flex;position:relative}.find-progress-pill{color:#475569;background:#ffffffbf;border-radius:20px;padding:4px 16px;font-size:.85rem;font-weight:700}.find-grid{gap:clamp(8px,2vw,14px);width:100%;max-width:520px;display:grid}.find-tile{aspect-ratio:1;color:#1e293b;cursor:pointer;background:#fff;border:3px solid #e2e8f0;border-radius:20px;justify-content:center;align-items:center;min-height:56px;font-family:inherit;font-size:clamp(1.6rem,6vw,2.6rem);font-weight:800;transition:transform .18s cubic-bezier(.34,1.56,.64,1),background .18s,border-color .18s;display:flex;box-shadow:0 4px 12px #0000000f}@media (hover:hover){.find-tile:not(:disabled):hover{transform:translateY(-3px)scale(1.04)}}.find-tile.found{color:#047857;cursor:default;background:#ecfdf5;border-color:#10b981}.find-tile.wrong{color:#b91c1c;background:#fef2f2;border-color:#ef4444;animation:.5s ease-in-out scramble-shake}.sound-prompt{text-align:center;border-radius:28px;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:480px;padding:clamp(14px,3vw,24px);display:flex}.sound-prompt-picture{background:#fff;border:4px solid;border-radius:50%;justify-content:center;align-items:center;width:clamp(112px,23vw,168px);height:clamp(112px,23vw,168px);font-family:inherit;display:flex;position:relative}.sound-prompt-emoji{width:76%;height:76%}.sound-prompt-letter{color:#be123c;background:0 0;border:none;font-family:inherit;font-size:clamp(3rem,12vw,5rem);font-weight:900;line-height:1}.sound-prompt-question{color:#334155;margin:0;font-size:clamp(.9rem,2.4vw,1.08rem);font-weight:700}.sound-options{flex-wrap:wrap;justify-content:center;gap:clamp(10px,2.5vw,16px);width:100%;max-width:520px;display:flex}.sound-letter-btn{color:#1e293b;cursor:pointer;background:#fff;border:3px solid #e2e8f0;border-radius:22px;min-width:clamp(64px,15vw,92px);min-height:clamp(64px,15vw,92px);font-family:inherit;font-size:clamp(1.8rem,6vw,2.6rem);font-weight:900;transition:transform .18s cubic-bezier(.34,1.56,.64,1);box-shadow:0 5px 14px #00000012}.sound-picture-btn{cursor:pointer;background:#fff;border:4px solid;border-radius:24px;justify-content:center;align-items:center;width:clamp(88px,20vw,128px);height:clamp(88px,20vw,128px);font-size:clamp(44px,10vw,66px);transition:transform .18s cubic-bezier(.34,1.56,.64,1);display:flex;box-shadow:0 5px 14px #00000012}@media (hover:hover){.sound-letter-btn:not(:disabled):hover,.sound-picture-btn:not(:disabled):hover{transform:translateY(-4px)scale(1.05)}}.sound-letter-btn.wrong,.sound-picture-btn.wrong{background:#fef2f2;border-color:#ef4444;animation:.5s ease-in-out scramble-shake}.pairs-progress-pill{color:#475569;background:#ffffffbf;border-radius:20px;padding:4px 16px;font-size:.85rem;font-weight:700}.pairs-grid{gap:clamp(8px,2vw,14px);width:100%;max-width:520px;display:grid}.pair-card{aspect-ratio:3/4;cursor:pointer;perspective:700px;background:0 0;border:none;min-height:56px;padding:0}.pair-card-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .4s cubic-bezier(.34,1.3,.64,1);display:block;position:relative}.pair-card.flipped .pair-card-inner{transform:rotateY(180deg)}.pair-card-face{backface-visibility:hidden;border-radius:18px;justify-content:center;align-items:center;font-weight:900;display:flex;position:absolute;inset:0;box-shadow:0 4px 12px #00000014}.pair-card-back{color:#ffffffe6;background:linear-gradient(135deg,#a855f7,#7e22ce);border:3px solid #c084fc;font-size:clamp(1.4rem,5vw,2rem)}.pair-card-front{color:#6b21a8;background:#fff;border:3px solid #e9d5ff;font-size:clamp(1.5rem,6vw,2.4rem);transform:rotateY(180deg)}.pair-card-front.is-picture{font-size:clamp(1.8rem,7vw,2.8rem)}.pair-card.matched .pair-card-front{background:#ecfdf5;border-color:#10b981}.syllable-slot{cursor:pointer;border:3px solid #cbd5e1;border-radius:14px;justify-content:center;align-items:center;min-width:clamp(58px,13vw,84px);height:clamp(50px,10vw,66px);padding:0 10px;font-family:inherit;font-size:clamp(1.05rem,3.4vw,1.5rem);font-weight:900;transition:transform .15s,box-shadow .15s;display:flex;box-shadow:0 2px 8px #0000000f}.syllable-slot.empty{cursor:default;border-style:dashed;border-width:2.5px}.syllable-tile{color:#1e293b;cursor:pointer;background:#fff;border:3px solid #e2e8f0;border-radius:14px;min-width:clamp(58px,13vw,84px);height:clamp(50px,10vw,66px);padding:0 12px;font-family:inherit;font-size:clamp(1.05rem,3.4vw,1.5rem);font-weight:900;transition:transform .18s cubic-bezier(.34,1.56,.64,1);box-shadow:0 4px 12px #00000012}@media (hover:hover){.syllable-tile:not(:disabled):hover{transform:translateY(-3px)scale(1.05)}}.syllable-tile.used{opacity:.35;cursor:default;box-shadow:none;border-color:#0000}.count-options{flex-wrap:wrap;justify-content:center;gap:clamp(10px,3vw,18px);display:flex}.count-option-btn{cursor:pointer;background:#fff;border:4px solid;border-radius:22px;width:clamp(64px,15vw,88px);height:clamp(64px,15vw,88px);font-family:inherit;font-size:clamp(1.8rem,6vw,2.6rem);font-weight:900;transition:transform .18s cubic-bezier(.34,1.56,.64,1);box-shadow:0 5px 14px #00000012}@media (hover:hover){.count-option-btn:not(:disabled):hover{transform:translateY(-4px)scale(1.05)}}.settings-hint-text{color:#64748b;margin:10px 0 0;font-size:.85rem;line-height:1.5}.family-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:clamp(12px,2.5vw,20px);width:100%;max-width:720px;display:grid}.family-card{cursor:pointer;border:3px solid;border-radius:26px;flex-direction:column;align-items:center;gap:4px;padding:clamp(14px,2.4vh,22px) 16px clamp(12px,2vh,18px);transition:transform .18s cubic-bezier(.34,1.56,.64,1);display:flex;box-shadow:0 8px 22px #00000014}@media (hover:hover){.family-card:hover{transform:translateY(-4px)scale(1.02)}}.family-card-emoji{font-size:clamp(2.4rem,7vh,3.4rem);line-height:1}.family-card-title{font-size:clamp(1rem,2.4vw,1.25rem);font-weight:900}.family-card-subtitle{color:#475569;font-size:clamp(.75rem,1.7vw,.88rem);font-weight:600}.family-card-previews{flex-direction:column;gap:2px;width:100%;margin:6px 0 4px;display:flex}.family-preview-svg{width:100%;height:clamp(20px,3.4vh,30px)}.family-card-progress{flex-direction:column;align-items:center;gap:4px;width:100%;display:flex}.family-progress-bar{background:#ffffffd9;border-radius:8px;width:100%;height:8px;overflow:hidden}.family-progress-fill{border-radius:8px;height:100%;transition:width .4s ease-out;display:block}.family-progress-text{color:#475569;font-size:.75rem;font-weight:700}.pattern-chip-row{flex-wrap:wrap;flex-shrink:0;justify-content:center;gap:6px;width:100%;display:flex}.pattern-chip{color:#475569;cursor:pointer;background:#ffffffe6;border:2px solid #00000014;border-radius:50px;align-items:center;gap:5px;min-height:44px;padding:6px 12px;font-size:.78rem;font-weight:700;transition:transform .15s,border-color .15s;display:flex}.pattern-chip.active{background:#fff;transform:scale(1.04);box-shadow:0 4px 12px #0000001a}.pattern-chip-icon{font-size:1rem}.pattern-canvas-wrapper{aspect-ratio:var(--pattern-aspect,1);max-width:min(720px, 92vw, calc((100dvh - var(--stage-chrome,250px)) * var(--pattern-aspect,1)))}.pattern-ring-fresh{transform-box:fill-box;transform-origin:50%;animation:.45s cubic-bezier(.34,1.56,.64,1) ring-appear}@keyframes ring-appear{0%{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}.canvas-nudge-pill.ring-hint{background:#0f766e}.pattern-rules{pointer-events:none;z-index:0;position:absolute;inset:0}.pattern-rule-line{background:#e2e8f0;width:100%;height:2px;position:absolute;left:0}.pattern-rule-line.rule-top{top:25%}.pattern-rule-line.rule-bottom{top:80%}.pattern-rule-line.rule-mid{background:0 0;border-top:2px dashed #eef2f7;height:0;top:52.5%}.stage-container.patterns-stage{--stage-chrome:467px;max-width:780px}.activation-screen{padding:var(--space-lg) var(--space-md);padding-top:max(var(--space-lg), env(safe-area-inset-top));padding-bottom:max(var(--space-lg), env(safe-area-inset-bottom));flex:1;justify-content:center;align-items:center;display:flex}.activation-card{text-align:center;flex-direction:column;align-items:center;width:100%;max-width:440px;padding:clamp(24px,5vw,38px) clamp(20px,5vw,34px);display:flex}.activation-icon{width:62px;height:62px;color:var(--primary-color);margin-bottom:var(--space-sm);background:linear-gradient(135deg,#eef2ff,#ede9fe);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.activation-icon-warn{color:#b45309;background:linear-gradient(135deg,#fef3c7,#fee2e2)}.activation-title{color:var(--text-main);margin:0 0 8px;font-size:clamp(1.25rem,4vw,1.55rem);font-weight:800}.activation-lead{color:var(--text-muted);margin:0 0 var(--space-md);max-width:34em;font-size:clamp(.9rem,2.4vw,1rem);line-height:1.55}.activation-label{color:var(--text-muted);letter-spacing:.02em;align-self:flex-start;margin-bottom:6px;font-size:.82rem;font-weight:700}.activation-input{letter-spacing:.14em;text-align:center;text-transform:uppercase;width:100%;color:var(--text-main);-webkit-user-select:text;user-select:text;background:#f8fafc;border:2px solid #e2e8f0;border-radius:16px;outline:none;min-height:56px;padding:14px 12px;font-family:ui-monospace,SF Mono,Cascadia Mono,Menlo,Consolas,monospace;font-size:clamp(1.15rem,4.4vw,1.4rem);font-weight:700;transition:border-color .18s,background .18s,box-shadow .18s}.activation-input::placeholder{color:#cbd5e1;letter-spacing:.14em;font-weight:600}.activation-input:focus{border-color:var(--primary-color);background:#fff;box-shadow:0 0 0 4px #6366f124}.activation-input.has-error{background:#fff5f5;border-color:#f87171}.activation-input:disabled{opacity:.6}.activation-error{text-align:left;color:#b91c1c;background:#fef2f2;border-radius:14px;align-items:flex-start;gap:8px;width:100%;margin:12px 0 0;padding:10px 12px;font-size:.88rem;font-weight:600;line-height:1.5;display:flex}.activation-error svg{flex-shrink:0;margin-top:2px}.activation-submit{width:100%;margin-top:var(--space-md);gap:8px}.activation-spinner{animation:.9s linear infinite activation-spin}@keyframes activation-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.activation-spinner{animation:none}}.activation-help{margin-top:var(--space-md);padding-top:var(--space-sm);width:100%;color:var(--text-muted);border-top:1px solid #f1f5f9;font-size:.82rem;line-height:1.55}.activation-help p{margin:0 0 6px}.activation-help p:last-child{margin-bottom:0}.activation-support{color:var(--text-muted);font-size:.82rem}.activation-email{color:var(--primary-color);-webkit-user-select:text;user-select:text;font-weight:700}@media (width<=600px){.global-nav-bar{gap:6px}.shapes-selection-grid{grid-template-columns:repeat(2,1fr)}.tools-cards-grid{gap:12px}}@media (width<=480px){.scramble-slot{border-radius:10px;width:clamp(36px,11vw,48px);height:clamp(42px,12vw,56px)}.scramble-slot-char{font-size:clamp(16px,5vw,24px)}.scramble-letter-tile{border-radius:10px;width:clamp(38px,11vw,50px);height:clamp(44px,12vw,58px);font-size:clamp(16px,5vw,24px)}}@media (height<=820px){.arrow-card-view{gap:14px}.arrow-hero-card{max-width:min(440px,100dvh - 312px);padding:16px}.arrow-grid-view{gap:12px}.arrow-quiz-view{gap:10px}.arrow-quiz-card{max-width:360px;padding:12px}.arrow-svg-element.quiz-size{width:clamp(52px,12vh,110px);height:clamp(52px,12vh,110px)}.quiz-instruction{margin-top:8px;font-size:1rem}.quiz-dir-btn{padding:8px 10px}.quiz-btn-label{font-size:.82rem}.menu-screen-container{gap:12px;padding-top:56px;padding-bottom:16px}.menu-grid{grid-template-columns:repeat(auto-fill,minmax(clamp(58px,9vh,96px),1fr));gap:clamp(8px,1.4vh,12px)}.letter-btn span:first-child{font-size:clamp(1rem,2.6vh,1.4rem)}.letter-btn .icon{margin-top:2px;font-size:clamp(.85rem,2vh,1.15rem)}.scramble-play-card{gap:clamp(6px,1.2vh,13px);margin:4px auto;padding:clamp(12px,2vh,18px) clamp(16px,3vw,36px)}.scramble-illustration-circle{width:clamp(68px,13.5vh,118px);height:clamp(68px,13.5vh,118px)}.scramble-emoji-display{font-size:clamp(36px,7.6vh,66px)}.scramble-slot{width:clamp(34px,6vh,46px);height:clamp(40px,7vh,54px)}.scramble-letter-tile{width:clamp(36px,6vh,48px);height:clamp(42px,7vh,56px)}.tools-menu-container{gap:13px;padding-top:72px;padding-bottom:18px}.tools-main-title{font-size:clamp(1.35rem,3vw,1.85rem)}.tools-section{gap:8px}.tools-section-title{font-size:clamp(.88rem,2.1vw,1.02rem)}.tool-card{gap:2px;padding:13px 10px}.tool-card-icon{font-size:clamp(1.8rem,4.4vh,2.5rem)}.find-target{padding:6px 16px}.find-tile{font-size:clamp(1.3rem,4.5vh,2.2rem)}.sound-prompt{gap:6px;padding:12px}.sound-prompt-picture{width:clamp(84px,16vh,130px);height:clamp(84px,16vh,130px)}.sticker-emoji{width:clamp(1.9rem,5vh,2.6rem);height:clamp(1.9rem,5vh,2.6rem)}}@media (height<=680px){.tools-menu-container{gap:9px;padding-top:62px}.tools-main-title{font-size:clamp(1rem,2.4vw,1.2rem)}.tools-section{gap:5px}.tool-card{padding:8px}.tool-card-icon{font-size:clamp(1.4rem,3.4vh,1.9rem)}.syllable-slot,.syllable-tile{min-width:clamp(48px,10vh,72px);height:clamp(40px,8vh,56px);font-size:clamp(.9rem,2.6vh,1.25rem)}.syllables-stage{row-gap:6px;padding-bottom:8px}.syllables-stage .scramble-play-card{gap:5px}.syllables-stage .scramble-illustration-circle{width:clamp(52px,10vh,72px);height:clamp(52px,10vh,72px)}.syllables-stage .scramble-emoji-display{font-size:clamp(28px,6vh,44px)}.sound-picture-btn{width:clamp(70px,14vh,104px);height:clamp(70px,14vh,104px)}.sticker-card{border-radius:16px;padding:8px 6px}.sticker-grid{grid-template-columns:repeat(auto-fill,minmax(clamp(72px,12vw,100px),1fr));gap:8px}.sticker-summary{padding:8px 16px}.count-option-btn{width:clamp(54px,11vh,74px);height:clamp(54px,11vh,74px);font-size:clamp(1.4rem,4.5vh,2rem)}}@media (height<=820px){.stage-container.patterns-stage{--stage-chrome:395px;gap:8px;padding-top:58px;padding-bottom:14px}.patterns-stage .shapes-tab-btn{min-height:38px;padding:5px 14px}.patterns-stage .pattern-chip{min-height:38px;padding:4px 9px;font-size:.72rem}.patterns-stage .pen-color-picker{padding:3px 12px}.patterns-stage .pen-swatch{width:20px;height:20px}.family-card{gap:2px;padding:10px 14px 8px}.family-card-emoji{font-size:clamp(1.8rem,5.5vh,2.6rem)}}@media (height<=680px){.stage-container.patterns-stage{--stage-chrome:388px}.patterns-stage .stage-header{margin-bottom:0}.activation-screen{padding:var(--space-md);align-items:flex-start}.activation-card{padding:var(--space-md) clamp(18px, 4vw, 28px)}.activation-icon{width:48px;height:48px}.activation-lead{margin-bottom:var(--space-sm)}.activation-help{margin-top:var(--space-sm)}}
