.sudoku-grid{flex-direction:column;gap:4px;max-width:360px;margin:1rem auto;display:flex}.sudoku-grid.size-6{max-width:420px}.sudoku-row{justify-content:center;gap:4px;display:flex}.sudoku-cell{cursor:pointer;background:#f8f9ff;border:3px solid #ddd;border-radius:12px;justify-content:center;align-items:center;width:80px;min-width:48px;height:80px;min-height:48px;font-size:2.5rem;transition:all .2s;display:flex}.size-6 .sudoku-cell{width:62px;height:62px;font-size:1.8rem}.sudoku-cell.hint{cursor:default;background:#fff8e8;border-color:#e0d4b0}.sudoku-cell.empty:hover{background:#fff3cd;transform:scale(1.05)}.sudoku-cell.selected{background:#fff3cd;border-color:#ffc107;transform:scale(1.08);box-shadow:0 0 12px #ffc10780}.sudoku-cell.conflict{background:#f8d7da;border-color:#dc3545}.sudoku-cell.wrong{background:#f8d7da;border-color:#dc3545;animation:.4s shake}.sudoku-cell.border-right{margin-right:8px}.sudoku-cell.border-bottom{margin-bottom:8px}.cell-symbol{pointer-events:none;filter:drop-shadow(0 2px 1.5px #3c280038)}.sudoku-cell.empty:not(.blank){background:#fff;border-color:#b9c3f5}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-4px)}75%{transform:translate(4px)}}@media (width<=400px){.sudoku-cell{width:60px;height:60px;font-size:1.8rem}.size-6 .sudoku-cell{width:48px;height:48px;font-size:1.4rem}}.size-9.sudoku-grid{gap:3px;max-width:460px}.size-9 .sudoku-row{gap:3px}.size-9 .sudoku-cell{border-width:2px;border-radius:8px;width:min(44px,min(100vw,600px)/9 - 12.2222px);min-width:0;height:min(44px,min(100vw,600px)/9 - 12.2222px);min-height:0;font-size:min(1.5rem,min(100vw,600px)/14.5161 - 7.57778px)}.size-9 .sudoku-cell.border-right{margin-right:5px}.size-9 .sudoku-cell.border-bottom{margin-bottom:5px}.sudoku-grid.numbers .cell-symbol{filter:none;text-shadow:0 1px #fffc,0 2px 3px #3c28002e;color:#4b3fa0;font-family:system-ui,-apple-system,sans-serif;font-weight:800}.sudoku-grid.numbers .hint .cell-symbol{color:#6b5a2e}.sudoku-grid.pulse-empty .sudoku-cell.blank{animation:.8s ease-in-out 3 blankPulse}@keyframes blankPulse{0%,to{background:#f8f9ff;border-color:#ddd}50%{background:#fff3cd;border-color:#ffc107;transform:scale(1.06)}}@media (prefers-reduced-motion:reduce){.sudoku-grid.pulse-empty .sudoku-cell.blank{background:#fff3cd;border-color:#ffc107;animation:none}}.symbol-picker{justify-content:center;gap:.8rem;margin:1.5rem 0;animation:.2s slideUp;display:flex}.picker-btn{cursor:pointer;background:#fff;border:3px solid #667eea;border-radius:16px;width:64px;min-width:48px;height:64px;min-height:48px;font-size:2rem;transition:all .15s}.picker-btn:hover{background:#f0f0ff;transform:scale(1.15);box-shadow:0 4px 12px #667eea4d}.picker-btn:active{transform:scale(.9)}.picker-clear{color:#dc3545;border-color:#dc3545}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.symbol-picker{flex-wrap:wrap}.size-6 .picker-btn{width:52px;height:52px;font-size:1.6rem}.size-9 .symbol-picker{gap:.4rem;max-width:300px;margin-left:auto;margin-right:auto}.size-9 .picker-btn{border-radius:12px;width:48px;height:48px;font-size:1.4rem}.numbers .picker-btn:not(.picker-clear){color:#4b3fa0;font-weight:800}.controls{justify-content:center;gap:.5rem;margin-top:1.5rem;display:flex;position:relative}.control-btn{cursor:pointer;background:#fff;border:2px solid #ddd;border-radius:.8rem;flex-direction:column;flex:0 auto;align-items:center;gap:.3rem;min-width:0;min-height:48px;padding:.6rem clamp(.4rem,2.5vw,1.2rem);transition:border-color .15s;display:flex}.control-btn:hover{border-color:#667eea}.control-label{color:#888;font-size:.75rem}.control-value{white-space:nowrap;font-size:clamp(.85rem,3.8vw,1.1rem)}.control-overlay{z-index:100;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.control-overlay-content{text-align:center;background:#fff;border-radius:1.5rem;min-width:280px;padding:2rem}.control-overlay-content h3{color:#333;margin:0 0 1.5rem;font-size:1.3rem}.control-options{flex-direction:column;gap:.8rem;display:flex}.control-option{cursor:pointer;background:#fff;border:3px solid #e0e0e0;border-radius:1rem;align-items:center;gap:1rem;min-height:48px;padding:1rem 1.5rem;font-size:1.1rem;transition:all .15s;display:flex}.control-option:hover{background:#f8f8ff;border-color:#667eea}.control-option.active{background:#eef0ff;border-color:#667eea}.option-icon{font-size:1.4rem}.control-overlay-content{max-width:calc(100vw - 2rem);max-height:85vh;overflow-y:auto}.symbol-options{grid-template-columns:1fr 1fr;gap:.6rem;display:grid}.symbol-options .control-option{flex-direction:column;gap:.25rem;padding:.7rem .5rem;font-size:.95rem}.symbol-options .option-icon{letter-spacing:1px;font-size:1.2rem}.control-option.locked{cursor:default;background:#f4f4f6;border-style:dashed}.control-option.locked .option-icon{filter:grayscale();opacity:.45}.option-lock{color:#8a6d00;font-size:.75rem;font-weight:700}.confetti-canvas{pointer-events:none;z-index:1001;width:100vw;height:100vh;position:fixed;inset:0}.celebration-backdrop{z-index:1000;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#28145a59;justify-content:center;align-items:center;padding:1rem;animation:.3s fadeIn;display:flex;position:fixed;inset:0}.celebration-card{text-align:center;background:radial-gradient(circle at 50% 0,#fff7d6 0%,#fff 60%);border-radius:2rem;width:100%;max-width:360px;padding:1.5rem 1.5rem 1.75rem;animation:.6s cubic-bezier(.34,1.56,.64,1) cardIn;position:relative;box-shadow:0 25px 70px #00000059}.celebration-lion{width:160px;height:160px;margin:-5rem auto 0;position:relative}.celebration-lion img{filter:drop-shadow(0 10px 18px #00000040);width:100%;height:100%;animation:.9s cubic-bezier(.34,1.56,.64,1) both lionJump,2.4s ease-in-out .9s infinite lionWiggle}.sparkle{font-size:1.6rem;animation:1.4s ease-in-out infinite twinkle;position:absolute}.sparkle.s1{top:0;left:-10px}.sparkle.s2{animation-delay:.3s;top:20px;right:-18px}.sparkle.s3{animation-delay:.6s;bottom:10px;left:-22px}.sparkle.s4{animation-delay:.9s;bottom:-4px;right:-8px}.celebration-stars{justify-content:center;gap:.4rem;margin-top:.5rem;font-size:2.2rem;display:flex}.celebration-stars span{animation:.5s cubic-bezier(.34,1.56,.64,1) both starPop;display:inline-block}.celebration-stars span:first-child{animation-delay:.5s}.celebration-stars span:nth-child(2){margin-top:-.4rem;font-size:2.8rem;animation-delay:.7s}.celebration-stars span:nth-child(3){animation-delay:.9s}.celebration-stars .star-empty{filter:grayscale();opacity:.25}.celebration-title{background:linear-gradient(90deg,#f5576c,#f093fb,#667eea);color:#0000;-webkit-background-clip:text;background-clip:text;margin-top:.5rem;font-size:2rem;animation:.5s .3s both titleIn}.celebration-sub{color:#555;margin:.25rem 0 1.25rem;font-size:1.1rem;animation:.5s .45s both titleIn}.celebration-actions{flex-direction:column;align-items:center;gap:.6rem;display:flex}.btn.btn-ghost{color:#667eea;background:0 0;min-height:40px;padding:.4rem 1rem;font-size:1rem}.celebration-actions .btn:focus-visible{outline-offset:3px;outline:3px solid #ffd166}.sudoku-grid.solved .sudoku-cell{animation:.6s cubic-bezier(.34,1.56,.64,1) both cellWave;animation-delay:var(--wave-delay,0s);opacity:1;background:#fff6d6;border-color:#ffc94d}@keyframes cellWave{0%{transform:scale(1)}40%{transform:scale(1.18)rotate(-4deg);box-shadow:0 0 18px #ffc94de6}70%{transform:scale(.95)rotate(2deg)}to{transform:scale(1);box-shadow:0 0 8px #ffc94d80}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes cardIn{0%{opacity:0;transform:translateY(40px)scale(.7)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes lionJump{0%{opacity:0;transform:translateY(80px)scale(.3)rotate(-20deg)}60%{opacity:1;transform:translateY(-14px)scale(1.08)rotate(6deg)}to{transform:translateY(0)scale(1)rotate(0)}}@keyframes lionWiggle{0%,to{transform:rotate(0)}25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}@keyframes twinkle{0%,to{opacity:.4;transform:scale(.6)rotate(0)}50%{opacity:1;transform:scale(1.2)rotate(20deg)}}@keyframes starPop{0%{opacity:0;transform:scale(0)rotate(-90deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes titleIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.celebration-backdrop,.celebration-card,.celebration-lion img,.sparkle,.celebration-stars span,.celebration-title,.celebration-sub,.sudoku-grid.solved .sudoku-cell{animation:none!important}}.celebration-unlock{background:linear-gradient(135deg,#fff1b8,#ffd166);border-radius:1rem;flex-direction:column;margin:-.5rem auto 1.1rem;padding:.6rem 1rem;animation:.6s cubic-bezier(.34,1.56,.64,1) 1.1s both unlockPop;display:flex;box-shadow:0 4px 14px #ffb70366}.unlock-label{color:#8a5a00;text-transform:uppercase;letter-spacing:.06em;font-size:.8rem;font-weight:800}.unlock-set{color:#3d2f0f;font-size:1.15rem;font-weight:800}@keyframes unlockPop{0%{opacity:0;transform:scale(.4)rotate(-6deg)}to{opacity:1;transform:scale(1)rotate(0)}}@media (prefers-reduced-motion:reduce){.celebration-unlock{animation:none}}.print-dialog{flex-wrap:wrap;justify-content:center;align-items:center;gap:.8rem;margin-top:1rem;display:flex}.print-label{color:#555;align-items:center;gap:.5rem;font-size:.9rem;display:flex}.print-input{text-align:center;border:2px solid #ddd;border-radius:.5rem;width:60px;min-height:48px;padding:.4rem;font-size:1.1rem}.print-check{cursor:pointer}.print-check input{width:1.1rem;height:1.1rem;margin:0}.btn-print{background:#28a745}.btn-cancel{background:#dc3545;padding:.5rem .8rem}.level-map{--world-a:#ffe9a8;--world-b:#ffd166;background:linear-gradient(180deg, var(--world-a), var(--world-b));border-radius:1.25rem;padding:1rem .5rem .75rem}.level-map.world-2,.level-map.world-7,.level-map.world-12,.level-map.world-17{--world-a:#d8f5c8;--world-b:#8fd694}.level-map.world-3,.level-map.world-8,.level-map.world-13,.level-map.world-18{--world-a:#d4f1ff;--world-b:#7cc8f0}.level-map.world-4,.level-map.world-9,.level-map.world-14,.level-map.world-19{--world-a:#ffe1ec;--world-b:#f7a8c4}.level-map.world-5,.level-map.world-10,.level-map.world-15,.level-map.world-20{--world-a:#e8e1ff;--world-b:#b6a6f5}.world-header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.world-nav{color:#4b3fa0;cursor:pointer;background:#ffffffd9;border:none;border-radius:50%;width:48px;height:48px;font-size:2rem;line-height:1;box-shadow:0 3px 8px #0000001f}.world-nav:disabled{opacity:.35;cursor:default}.world-title{flex-direction:column;align-items:center;display:flex}.world-number{color:#6b5a2e;text-transform:uppercase;letter-spacing:.08em;font-size:.8rem}.world-name{color:#3d2f0f;font-size:1.3rem;font-weight:800}.world-stars{color:#6b5a2e;font-size:.85rem}.level-path{flex-direction:column;gap:.9rem;padding:1.25rem 0 .5rem;display:flex}.level-row{justify-content:space-around;display:flex;position:relative}.level-row:before{content:"";z-index:0;border-top:4px dashed #fffc;position:absolute;top:26px;left:10%;right:10%}.level-row.ltr:after,.level-row.rtl:after{content:"";z-index:0;border-left:4px dashed #fffc;height:calc(100% + .9rem);position:absolute;top:26px}.level-row.ltr:after{right:10%}.level-row.rtl:after{left:10%}.level-row:last-child:after{display:none}.level-bubble{z-index:1;cursor:pointer;border:3px solid #fff;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:54px;height:54px;font-size:1.15rem;font-weight:800;transition:transform .12s;display:flex;position:relative;box-shadow:0 4px #0000002e}.level-bubble:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px #0000002e}.level-bubble.open{color:#fff;background:#667eea}.level-bubble.done{color:#5a3b00;background:#ffb703}.level-bubble.locked{color:#999;cursor:default;box-shadow:none;background:#ffffff8c;font-size:.95rem}.level-bubble.current{color:#fff;background:linear-gradient(135deg,#f093fb,#f5576c);animation:1.6s ease-in-out infinite bubblePulse}.level-lion{filter:drop-shadow(0 3px 4px #00000040);pointer-events:none;width:44px;height:44px;animation:1.6s ease-in-out infinite lionHop;position:absolute;top:-34px;left:50%;transform:translate(-50%)}.level-num{line-height:1}.level-stars{color:#ff9f1c;text-shadow:0 1px #fff,0 0 2px #fff;letter-spacing:-1px;font-size:.8rem;position:absolute;bottom:-14px}.level-stars .dim{color:#0003;text-shadow:none}.total-stars{color:#3d2f0f;margin-top:1rem;font-weight:700}@keyframes bubblePulse{0%,to{box-shadow:0 4px #0000002e,0 0 #f5576c80}50%{box-shadow:0 4px #0000002e,0 0 0 10px #f5576c00}}@keyframes lionHop{0%,to{transform:translate(-50%)translateY(0)}50%{transform:translate(-50%)translateY(-6px)}}@media (prefers-reduced-motion:reduce){.level-bubble.current,.level-lion{animation:none}}.advent{color:#fff;background:linear-gradient(#1d3b2a,#2f5d3a);border-radius:1.25rem;padding:1rem .75rem}.advent-title{font-size:1.3rem;font-weight:800}.advent-status{opacity:.9;margin:.25rem 0 .9rem}.advent-grid{grid-template-columns:repeat(4,1fr);gap:.5rem;display:grid}.advent-door{aspect-ratio:1;color:#fff;cursor:pointer;background:#b5282e;border:2px dashed #ffffff80;border-radius:.75rem;flex-direction:column;justify-content:center;align-items:center;gap:.15rem;font-weight:800;transition:transform .12s;display:flex;position:relative;box-shadow:0 3px #00000040}.advent-door.c1{background:#c98a16}.advent-door.c2{background:#3c7a4a}.advent-door:active:not(:disabled){transform:translateY(2px)}.advent-door:disabled{cursor:default;opacity:.55;box-shadow:none}.advent-door.done{border-style:solid;border-color:#ffd166}.advent-door.today{border:3px solid #fff;animation:1.6s ease-in-out infinite doorGlow}.advent-num{font-size:1.4rem;line-height:1}.advent-icon{font-size:1.1rem;line-height:1}@keyframes doorGlow{0%,to{box-shadow:0 3px #00000040,0 0 #ffd16699}50%{box-shadow:0 3px #00000040,0 0 0 8px #ffd16600}}@media (prefers-reduced-motion:reduce){.advent-door.today{animation:none}}.app{text-align:center;background:#fff;border-radius:1.5rem;padding:2rem;box-shadow:0 20px 60px #0000004d}.title{color:#333;margin-bottom:1.5rem;font-size:2rem}.start-screen{flex-direction:column;align-items:center;gap:1.5rem;display:flex}.btn{cursor:pointer;color:#fff;background:#667eea;border:none;border-radius:1rem;min-width:48px;min-height:48px;padding:.8rem 1.5rem;font-size:1.2rem;font-weight:700;transition:transform .1s}.btn:hover{transform:scale(1.05)}.btn:active{transform:scale(.95)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-start{background:linear-gradient(135deg,#f093fb,#f5576c);padding:1rem 2rem;font-size:1.5rem}.actions{justify-content:center;margin-top:1.5rem;display:flex}.btn-check{padding-left:3rem;padding-right:3rem}.actions-row{justify-content:center;gap:1rem;margin-top:1rem;display:flex}.mode-tabs{background:#f0f0fa;border-radius:999px;margin-bottom:1rem;padding:4px;display:flex}.mode-tabs button{color:#666;cursor:pointer;background:0 0;border:none;border-radius:999px;flex:1;min-height:44px;padding:.6rem .5rem;font-size:1rem;font-weight:700}.mode-tabs button.active{color:#4b3fa0;background:#fff;box-shadow:0 2px 8px #0000001f}.level-bar{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.btn.btn-small{color:#5a3b00;background:#ffb703;min-height:40px;padding:.4rem .9rem;font-size:.95rem}.level-label{flex-direction:column;align-items:flex-end;line-height:1.2;display:flex}.level-world{color:#888;font-size:.8rem}@media (width<=480px){.app{padding:1.25rem .75rem}}.actions{flex-direction:column;align-items:center;gap:.6rem}.check-hint{color:#6b4e00;background:#fff3cd;border-radius:999px;padding:.5rem 1rem;font-weight:700;animation:.35s cubic-bezier(.34,1.56,.64,1) hintIn;box-shadow:0 4px 12px #ffc10759}@keyframes hintIn{0%{opacity:0;transform:translateY(-6px)scale(.9)}to{opacity:1;transform:translateY(0)scale(1)}}
