.difficulty-modal{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;display:flex;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.difficulty-modal.show{opacity:1;visibility:visible}.difficulty-modal-content{position:relative;width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;border-radius:6px;background:#fff;padding:12px;transform:scale(.95);transition:transform .3s cubic-bezier(.34,1.56,.64,1)}.difficulty-modal.show .difficulty-modal-content{transform:scale(1)}.difficulty-modal-header{flex-shrink:0;padding:10px 10px 2px}.difficulty-modal-title{font-size:18px;font-weight:500;color:#1f2937;margin:0;text-align:center}.difficulty-modal-body{padding:0 16px;flex:1;overflow-y:auto;display:flex;flex-direction:column}.difficulty-list{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden}.difficulty-item{display:flex;align-items:center;justify-content:space-between;background:#fff;cursor:pointer;transition:all .2s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex:1;text-decoration:none}.difficulty-item:hover{background:#f0f9ff;border-radius:4px;transform:translateY(-1px)}.difficulty-item.selected{border-color:#3b82f6;background:#eff6ff}.difficulty-info{display:flex;flex-direction:column;align-items:flex-start;padding:12px}.difficulty-name{font-size:14px;font-weight:500;color:#1f2937}.difficulty-desc{font-size:11px;color:#64748b80}.difficulty-modal-body::-webkit-scrollbar{width:6px}.difficulty-modal-body::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.difficulty-modal-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.difficulty-modal-body::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media (max-width: 480px){.difficulty-modal-content{width:95%;margin:20px}.difficulty-modal-header{padding:16px 20px}.difficulty-modal-title{font-size:18px}.difficulty-modal-body{padding:12px}.difficulty-item{padding:14px 16px}.difficulty-name{font-size:15px}.difficulty-desc{font-size:13px}.difficulty-icon{font-size:20px;width:36px;height:36px}}@keyframes difficultySlideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.difficulty-item{animation:difficultySlideIn .3s ease forwards}.difficulty-item:nth-child(1){animation-delay:.05s;opacity:0}.difficulty-item:nth-child(2){animation-delay:.1s;opacity:0}.difficulty-item:nth-child(3){animation-delay:.15s;opacity:0}.difficulty-item:nth-child(4){animation-delay:.2s;opacity:0}.difficulty-item:nth-child(5){animation-delay:.25s;opacity:0}.difficulty-item:nth-child(6){animation-delay:.3s;opacity:0}.difficulty-modal.show .difficulty-item{opacity:1}.difficulty-item:focus{outline:2px solid #3b82f6;outline-offset:2px}.difficulty-modal-footer{padding:16px;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.difficulty-footer-tip{text-align:center}.footer-tip-text{font-size:11px;color:#64748b80;line-height:1.4}.difficulty-footer-actions{text-align:center;padding:8px 0 0;width:100%}.cancel-difficulty-btn{background:#fff;border:1px solid #e5e7eb;color:#1f2937;border-radius:6px;padding:12px 16px;font-size:16px;font-weight:500;cursor:pointer;transition:background-color .2s ease;width:100%}.cancel-difficulty-btn:hover{background:#d8dadc80}@media (prefers-reduced-motion: reduce){.difficulty-modal,.difficulty-modal-content,.difficulty-item{transition:none;animation:none}}@media (max-width: 767px){.difficulty-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none;opacity:0;background:transparent;transition:opacity .3s ease}.difficulty-modal.show{display:flex;align-items:flex-end;justify-content:center;opacity:1;visibility:visible}.difficulty-modal.hidden{display:none;opacity:0}.difficulty-modal-overlay{display:block;position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080}.difficulty-modal-content{position:relative;width:100%;height:auto;max-height:80vh;margin:0;overflow:hidden;border-radius:20px 20px 0 0;box-shadow:0 -4px 20px #00000026;padding:0;background:#fff;transform:translateY(100%);transition:transform .3s cubic-bezier(.25,.46,.45,.94)}.difficulty-modal.show .difficulty-modal-content{transform:translateY(0)}.difficulty-modal.closing .difficulty-modal-content{animation:dmSlideDown .3s cubic-bezier(.25,.46,.45,.94) forwards}@keyframes dmSlideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.difficulty-modal-header{display:flex;align-items:center;justify-content:center;position:relative;padding:20px 24px 16px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.difficulty-modal-title{font-size:18px;font-weight:600;color:#333;margin:0;text-align:center}.difficulty-modal-close{display:flex;align-items:center;justify-content:center;position:absolute;right:16px;top:50%;transform:translateY(-50%);background:none;border:none;padding:8px;cursor:pointer;border-radius:50%;transition:background-color .2s ease}.difficulty-modal-close:hover{background-color:#f5f5f5}.difficulty-close-icon{width:20px;height:20px;color:#666}.difficulty-modal-body{max-height:calc(80vh - 80px);overflow-y:auto;padding:0;flex:none;display:block}.difficulty-list{display:flex;flex-direction:column;overflow:visible}.difficulty-item{display:flex;align-items:center;justify-content:space-between;flex:none;padding:16px 24px;cursor:pointer;transition:background-color .2s ease;border-bottom:1px solid #f8f8f8;background:#fff;text-decoration:none}.difficulty-item:hover{background-color:#f8f9fa}.difficulty-item:active{background-color:#e9ecef}.difficulty-item:last-child{border-bottom:none}.difficulty-item.selected{background:#fff}.difficulty-info{display:flex;flex-direction:column;gap:4px;padding:0}.difficulty-name{font-size:16px;color:#333}.difficulty-desc{font-size:14px;color:#bcbcbc}.difficulty-tip,.difficulty-modal-footer{display:none}}@media (max-width: 480px){.difficulty-modal-content{border-radius:16px 16px 0 0}.difficulty-modal-header{padding:16px 20px 12px}.difficulty-modal-title{font-size:18px;text-align:center}.difficulty-item{padding:14px 20px;min-height:68px}.difficulty-name{font-size:15px}.difficulty-desc{font-size:12px}}@media (min-width: 768px){.difficulty-modal-overlay,.difficulty-modal-close{display:none}}.game-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;display:none;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease}.game-modal.show{display:flex;opacity:1}.game-modal.bottom-position{align-items:flex-end;justify-content:center}.game-modal.bottom-position .modal-content{width:100%;max-width:500px;margin:0;border-radius:12px 12px 0 0;transform:translateY(100%);transition:transform .3s cubic-bezier(.25,.46,.45,.94)}.game-modal.bottom-position.show .modal-content{transform:translateY(0)}.game-modal.bottom-position.closing .modal-content{transform:translateY(100%)}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#0006;overscroll-behavior:none;-webkit-overflow-scrolling:auto}.modal-content{position:relative;width:calc(100% - 30px);max-width:400px;background:#fff;border-radius:12px;box-shadow:0 4px 20px #00000026;transform:scale(.9);transition:transform .3s cubic-bezier(.25,.46,.45,.94);margin:0 15px}.game-modal.show .modal-content{transform:scale(1)}.modal-close{background:none;border:none;padding:4px;cursor:pointer;border-radius:50%;transition:background-color .2s ease;display:flex;align-items:center;justify-content:center;height:32px;width:32px;flex-shrink:0}.modal-close:hover{background-color:#0000000d}.close-icon{width:18px;color:#999}.modal-header{position:relative;padding:16px 24px 0;display:flex;align-items:center;justify-content:flex-end;min-height:48px;margin-top:10px}.modal-body{padding:0 24px 24px;text-align:center;display:flex;flex-direction:column;align-items:center}.modal-title{font-size:16px;font-weight:700;color:#333;margin:0;display:flex;align-items:center;justify-content:center;flex:1;text-align:center;position:absolute;left:0;right:0;top:16px;pointer-events:none}.modal-icon{width:100px;height:100px;display:flex;align-items:center;justify-content:center;margin-bottom:20px;border-radius:50%}.emoji-icon{font-size:48px;line-height:1}.emoji-icon.sad{background:linear-gradient(135deg,#ffd93d,#ff9500);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.emoji-icon.pause{color:#6c757d}.emoji-icon.hint{color:#ffc107}.emoji-icon.lose{color:#dc3545}.emoji-icon.win{color:#28a745}.modal-description{font-size:13px;font-weight:400;color:#768fab;margin-bottom:24px;line-height:1.5}.modal-buttons{display:flex;flex-direction:column;gap:14px;width:100%}.btn{height:42px;border:none;border-radius:4px;font-size:14px;font-weight:400;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;margin:0 24px;gap:8px}.btn .video-icon{width:14px;height:14px;flex-shrink:0}.btn .video-icon svg{width:100%;height:100%;fill:currentColor}.btn-primary{background:#1675e0;color:#fff;box-shadow:0 2px 4px #00000040}.btn-primary:hover{background:#1675e0e6;transform:translateY(-1px);box-shadow:0 4px 8px #0000004d}.btn-primary:active{transform:translateY(0);box-shadow:0 2px 4px #00000040}.btn-secondary{background:#fff;color:#1675e0;border:.5px solid rgba(220,232,245,1);box-shadow:0 2px 6px #1675e033}.btn-secondary:hover{background:#1675e00d;transform:translateY(-1px);box-shadow:0 4px 8px #1675e04d}.btn-secondary:active{transform:translateY(0);box-shadow:0 2px 6px #1675e033}@media (max-width: 480px){.modal-content{margin:0 15px;border-radius:12px}.modal-body{padding:20px}.modal-header{padding:12px 20px 0;min-height:44px}.modal-title{font-size:15px;margin-top:0}.modal-icon{width:80px;height:80px;margin-bottom:16px}.emoji-icon{font-size:36px}.modal-description{font-size:13px;margin-bottom:24px}.btn{height:48px;font-size:14px;margin:0 12px}.modal-buttons{gap:12px}}@keyframes scaleIn{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes scaleOut{0%{transform:scale(1);opacity:1}to{transform:scale(.9);opacity:0}}.game-modal.closing .modal-content{animation:scaleOut .3s cubic-bezier(.25,.46,.45,.94) forwards}.center-container{width:100%;display:flex;justify-content:center;align-items:center;gap:20px}.mobile-container{width:18%;max-width:400px;min-width:330px;height:32%;min-height:600px;max-height:890px;display:flex;flex-direction:column;position:relative;overflow:hidden;border-radius:6px;background:#fff;border:1px solid rgba(235,241,247,1);padding:12px}.game-info-section{text-align:center;margin-bottom:0}.battle-mode-info{margin-top:8vh}@media (max-height: 750px){.battle-mode-info{margin-top:60px}}@media (min-height: 1250px){.battle-mode-info{margin-top:100px}}.battle-mode-info{width:100%}.battle-progress-container{position:relative;min-height:30px}.score-display-module{position:absolute;top:100%;display:flex;flex-direction:column;align-items:center;margin-top:var(--score-module-spacing, -20px);transition:left .3s ease;left:50%;transform:translate(-50%)}.score-triangle{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgb(255,255,255);transition:all .3s ease;position:relative}.score-rectangle{background:#fff;border-radius:4px;padding:6px;min-width:48px;text-align:center;height:18px;display:flex;align-items:center;justify-content:center}.score-rectangle .score-text{color:#8c2626;font-size:12px;font-weight:600}.battle-progress-bar{height:8px;overflow:hidden;display:flex;width:100%}.player-progress{background:#ed1a1a;transition:width .3s ease}.opponent-progress{background:#1675e0;transition:width .3s ease}.battle-info-container{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;align-items:center;width:100%;min-width:0}.battle-avatar-left{grid-column:1;grid-row:1;justify-self:center}.battle-details-left{grid-column:1;grid-row:2;justify-self:center}.battle-details-right{grid-column:3;grid-row:2;justify-self:center}.battle-avatar-right{grid-column:3;grid-row:1;justify-self:center}.vs-section{grid-column:2;grid-row:1 / 3;display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0}.player-details{display:flex;flex-direction:column;gap:4px;min-width:0;text-align:center}.player-name,.player-country{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}.error-marks{display:flex;gap:6px;align-items:center;flex-shrink:0}@media (max-width: 360px){.battle-info-container{padding:15px 10px;gap:8px}.player-avatar{width:36px;height:36px}.player-name,.player-country{max-width:90px;font-size:12px}.vs-section{gap:4px}.vs-image-container{width:24px;height:24px}.battle-countdown{font-size:12px}.error-mark{width:12px;font-size:10px}.rules-section,.encyclopedia-section{margin:0 4px;width:calc(100% - 24px);padding:16px}.article-image,.article-image-placeholder{width:60px;height:60px}.article-info{min-height:60px}.article-title{font-size:13px}.article-excerpt{font-size:11px}.section-title{font-size:16px;margin-bottom:12px}}@media (max-width: 320px){.battle-info-container{padding:12px 8px;gap:6px}.player-name,.player-country{max-width:80px;font-size:11px}.player-avatar{width:32px;height:32px}.vs-image-container{width:20px;height:20px}}@media (min-width: 768px){.player-name,.player-country{max-width:150px}.player-avatar{width:48px;height:48px}.vs-image-container{width:36px;height:36px}}.player-avatar{width:52px;height:52px;border-radius:50%;border:2px solid rgba(255,255,255,1);overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f0f0f0}.player-avatar img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.player-details{display:flex;flex-direction:column;gap:4px}.player-name{font-size:14px;color:#0e2f52;line-height:17.38px;font-weight:500}.player-country{font-size:12px;color:#768fab;line-height:14.48px}.vs-section{display:flex;align-items:center;justify-content:center;gap:8px}.vs-center{display:flex;flex-direction:column;align-items:center;gap:0px}.vs-image-container{width:30px;height:30px;display:flex;align-items:center;justify-content:center}.vs-placeholder{width:50px;display:flex;align-items:center;justify-content:center}.battle-countdown{font-size:14px;color:#0e2f52;font-weight:500}.error-marks{display:flex;gap:6px;align-items:center}.left-errors{justify-content:flex-end}.right-errors{justify-content:flex-start}.error-mark{width:14px;color:#768fab;display:flex;align-items:center;justify-content:center;opacity:.3;transition:opacity .3s ease}.error-mark.active{opacity:1;color:#f44336}.error-mark .error-icon{width:100%;height:100%;fill:currentColor}.score-display-row{text-align:center;padding:20px 0}.score-text{font-size:20px;font-weight:500;letter-spacing:0px;line-height:12px;color:#1675e0;display:inline-block}.score-display{margin-bottom:12px}.score-label{font-size:18px;font-weight:700;letter-spacing:0px;line-height:26.06px;color:#1675e0;text-align:left;vertical-align:top;margin-right:0}.score-value{font-size:18px;font-weight:700;letter-spacing:0px;line-height:26.06px;color:#1675e0;text-align:left;vertical-align:top}.game-stats-row{display:flex;justify-content:space-between;align-items:center;backdrop-filter:blur(10px);margin-bottom:0}.stat-item{display:flex;flex-direction:row;align-items:center;gap:4px;flex:1;justify-content:center}.timer-item{display:flex;align-items:center}.timer-item:hover .timer-control{background-color:#1675e01a}.timer-control{display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 12px;border-radius:6px;transition:background-color .2s ease}.timer-icon{width:16px;height:16px}.icon-play{color:#1675e0;fill:#1675e0}.icon-pause{color:#ed1a1a;fill:#ed1a1a}.timer-icon.home-hidden,.timer-control.game-complete .timer-icon{display:none}.timer-info{display:flex;white-space:nowrap;overflow:hidden;align-items:center;gap:4px}.stat-label{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;letter-spacing:0px;line-height:17.38px;color:#0e2f52;text-align:left;vertical-align:top}.stat-value{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;letter-spacing:0px;line-height:17.38px;color:0E2F52;text-align:left;vertical-align:top}.sudoku-grid-wrapper{height:32%;max-height:890px;min-height:600px;aspect-ratio:1;position:relative;margin:0}.sudoku-grid{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;margin:0;transition:opacity .18s ease}.sudoku-grid.is-switching{opacity:.35}.game-start-overlay{position:absolute;inset:0;background:#ffffffa6;backdrop-filter:blur(.2px);-webkit-backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;z-index:500;border:none;outline:none}.start-overlay-icon{width:88px;height:88px;color:#1976d2;fill:#1976d2;cursor:pointer;display:block}.samurai-grid-selector{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:6px;width:100%;max-width:480px;margin:10px auto 0;padding:4px 12px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.samurai-grid-selector::-webkit-scrollbar{display:none}.samurai-grid-chip:first-child{margin-left:auto}.samurai-grid-chip:last-child{margin-right:auto}.samurai-grid-chip{flex:0 0 auto;min-width:56px;height:32px;padding:0 14px;border-radius:999px;border:1px solid rgba(22,117,224,.2);background:#eef6ffe6;color:#1675e0;font-size:.86rem;font-weight:600;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background-color .22s ease,color .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease}.samurai-grid-chip:hover{background:#d6e9fc;border-color:#1675e073}.samurai-grid-chip:active{transform:scale(.94)}.samurai-grid-chip.is-active{background:linear-gradient(135deg,#1675e0,#0f66c9);color:#fff;border-color:#0f66c9;box-shadow:0 2px 6px #1675e052;transform:translateY(-1px)}.sudoku-game-wrapper[data-editor-mode=true] .samurai-grid-selector{display:none!important}@media (min-aspect-ratio: 3/4){.samurai-grid-selector{display:none}}.zoom-control-container{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px;width:100%;max-width:300px;margin-left:auto;margin-right:auto}.zoom-btn{width:30px;height:30px;border-radius:50%;border:1px solid #ccc;background:#f5f5f5;font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333}.zoom-slider{flex:1;height:6px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#e0e0e0;border-radius:3px;outline:none}.zoom-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:#1976d2;cursor:pointer}.sudoku-cell{background:#fff;border:1px solid #e0e0e0;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;color:#333;cursor:pointer;transition:all .2s ease;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sudoku-cell:nth-child(3n){border-right:2px solid #4A90E2}.sudoku-cell:nth-child(n+19):nth-child(-n+27),.sudoku-cell:nth-child(n+46):nth-child(-n+54){border-bottom:2px solid #4A90E2}.sudoku-cell.selected{background:#1976d2;border-color:#0d47a1;color:#fff}.sudoku-cell.related{background:#bbdefb}.sudoku-cell.same-number{background:#ffcc80}.sudoku-cell.initial-number{color:#333;font-weight:700}.sudoku-cell.user-number{color:#1675e0;font-weight:600}.sudoku-cell.error-number{color:#f44336;background:#ffebee}.sudoku-cell.conflict{background:#ffcdd2;animation:conflictPulse .5s ease-in-out}.sudoku-cell.error-flash{animation:errorFlash .5s ease-in-out}.cell-pencil{position:absolute;inset:2px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);font-size:10px;color:#666;pointer-events:none}.pencil-mark{display:flex;align-items:center;justify-content:center;font-size:8px}.pencil-mark-placeholder{display:flex;align-items:center;justify-content:center}.pencil-mark.highlighted{background-color:#1675e0;color:#fff;font-weight:700;border-radius:2px}.grid-toggle-container{position:relative;right:10px;margin-left:auto;padding:10px 0}.grid-toggle{display:block;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}.grid-toggle input{display:none}.toggle-switch{width:48px;height:20px;background:#768fab;border-radius:10px;position:relative;transition:background-color .3s;display:flex;align-items:center;padding:2px;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline:none;-webkit-touch-callout:none;-webkit-user-drag:none}.toggle-icon{width:16px;height:16px;color:#fff;transition:transform .3s;position:absolute;left:2px;top:2px}.grid-toggle input:checked+.toggle-switch{background:#1675e0}.grid-toggle input:checked+.toggle-switch .toggle-icon{transform:translate(28px)}.toggle-switch.active .toggle-icon{transform:translate(28px)}.function-controls{display:flex;justify-content:space-around;align-items:center;padding:0 0 10px;backdrop-filter:blur(10px);width:100%}.number-input-section{width:100%;background:#ebf1f7;backdrop-filter:blur(10px);border-radius:6px;border:1px solid rgba(255,255,255,.2);box-sizing:border-box;margin:0}.number-input-section .number-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;padding:12px;box-sizing:border-box}.number-input-section .number-btn{background:#fff;box-shadow:0 2px 4px #0322451a;border-radius:8px;width:100%;aspect-ratio:6/5;min-width:0;border:1px solid rgba(22,117,224,.2);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;position:relative;filter:saturate(1);box-sizing:border-box;font-size:18px;font-weight:400}.number-input-section .number-btn:hover{transform:translateY(-1px)}.number-input-section .number-btn.selected{background:#4598f8;box-shadow:0 2px 8px #1675e066;border-radius:4px;opacity:1;transform:scale(1.05)}.number-input-section .number-btn.selected .number{color:#fff}.number-input-section .number-btn.selected .count{color:#fffc}.number-input-section .number-btn:not(.selected){opacity:.4}.number-input-section .number-btn.completed{background:#e0e0e0;color:#999;cursor:not-allowed;filter:saturate(.4)}.number-input-section .number-btn .number{font-size:28px;color:#1675e0;line-height:34.75px;font-weight:350}.number-input-section .number-btn .count{font-size:14px;color:#768fab;line-height:1}.number-input-section .number-btn.selected .count{color:#ffffff80}.number-input-section .number-btn.active{transform:scale(1.05);opacity:1}.number-input-section .number-btn.active .number{color:#1976d2}.number-input-section .number-btn.active .count{color:#768fab}.number-input-section{position:relative}.num-praise{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px 12px;box-sizing:border-box}.num-praise-icon{width:48px;height:48px;color:#768fab;fill:#768fab;animation:numPraiseBounce .6s cubic-bezier(.34,1.56,.64,1)}.num-praise-text{font-size:16px;font-weight:400;color:#768fab;text-align:center;line-height:1.4}@keyframes numPraiseBounce{0%{transform:scale(0);opacity:0}60%{transform:scale(1.2);opacity:1}to{transform:scale(1);opacity:1}}.control-btn{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:none;color:#fff;padding:12px 8px;border-radius:12px;cursor:pointer;transition:all .2s;min-width:60px;position:relative}.control-btn:hover{background:#ffffff1a;transform:translateY(-2px)}.control-btn:active{transform:translateY(0)}.control-btn.active{background:#4a90e21a;color:#4a90e2}.btn-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.btn-icon svg{width:100%;height:100%;fill:#0e2f52}.btn-text{font-size:10px;font-weight:400;color:#0e2f52}.hint-count{position:absolute;top:6px;right:12px;background:#f44336;color:#fff;font-size:10px;font-weight:700;width:14px;height:14px;border-radius:50%;display:flex;align-items:center;justify-content:center}.number-panel{display:none}.daily-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:12px}.daily-nav-btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border:none;border-radius:8px;background:#1675e0;color:#fff;font-size:15px;font-weight:600;box-shadow:0 6px 14px #1675e033;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;outline:none;transition:background-color .15s ease,opacity .15s ease;text-align:center;white-space:nowrap}.daily-nav-btn:hover{background:#1268c8}.daily-nav-btn:active{background:#0f5eb5}.daily-nav-btn:focus-visible{box-shadow:0 0 0 3px #1675e038}.daily-nav-btn.secondary{background:#eef6ff;color:#1675e0;border:1px solid #1675e0;box-shadow:none}.daily-nav-btn.secondary:hover{background:#e1f0ff}.daily-nav-btn.secondary:active{background:#d6eaff}.daily-nav-btn:disabled{background:#c8d6e5;color:#a0b4c8;box-shadow:none;cursor:not-allowed;pointer-events:none}.daily-nav-btn.secondary:disabled{background:#eef0f2;color:#b0bec5;border-color:#cfd8dc;cursor:not-allowed;pointer-events:none}.new-game-btn-panel{width:100%;padding:12px 16px;margin-top:12px;background:#1976d2;color:#fff;border:none;border-radius:6px;font-size:16px;font-weight:500;cursor:pointer;transition:background-color .2s ease;text-align:center}.new-game-btn-panel:hover{background:#1565c0}.new-game-btn-panel:active{background:#0d47a1}.home-hidden,.settings-dialog.hidden,.smart-hint.hidden,.game-overlay.hidden{display:none!important}.game-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.overlay-content{background:#fff;padding:32px;border-radius:16px;text-align:center;max-width:300px;margin:16px}.overlay-btn{background:#4a90e2;color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:16px;cursor:pointer;margin-top:16px}.victory-dialog{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.victory-dialog .dialog-content{background:#fff;padding:32px;border-radius:16px;text-align:center;max-width:320px;margin:16px}.victory-stats{margin:20px 0;text-align:left}.victory-stats p{margin:8px 0;display:flex;justify-content:space-between}.dialog-buttons{display:flex;flex-direction:column;gap:8px;margin-top:20px}.dialog-btn{padding:12px 24px;border:none;border-radius:8px;font-size:16px;cursor:pointer;transition:background-color .2s}.dialog-btn.primary{background:#4a90e2;color:#fff}.dialog-btn:not(.primary){background:#f5f5f5;color:#333}.settings-dialog{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.settings-dialog .dialog-content{background:#fff;border-radius:16px;max-width:400px;margin:16px;max-height:80vh;overflow-y:auto}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px 16px;border-bottom:1px solid #e0e0e0}.dialog-header h3{margin:0;font-size:18px}.close-btn{background:none;border:none;font-size:24px;cursor:pointer;color:#666;padding:4px}.dialog-body{padding:20px 24px}.setting-item{margin-bottom:24px}.setting-label{display:flex;align-items:center;cursor:pointer;font-weight:500;margin-bottom:8px}.setting-checkbox{margin-right:12px}.setting-description{color:#666;font-size:14px;line-height:1.4;margin:0}.smart-hint{position:fixed;bottom:100px;left:16px;right:16px;background:#fff;border-radius:12px;padding:16px;box-shadow:0 4px 20px #00000026;z-index:100}.hint-content{display:flex;flex-direction:column;gap:8px}.hint-item{display:flex;align-items:center;gap:8px;font-size:14px}.hint-label{font-weight:600;color:#333;min-width:60px}.hint-values{color:#666}.hint-values.possible{color:#4a90e2;font-weight:600}@keyframes errorFlash{0%,to{background-color:#fff}50%{background-color:#ffcdd2}}@keyframes conflictPulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 1200px){.page-content{max-width:100%;padding:0 16px}}@media (max-width: 768px){.page-content{padding:0 12px;gap:24px}}@media (max-width: 400px){.control-btn{min-width:50px;padding:10px 6px}.btn-text{font-size:11px}.number-input-section .number-btn{min-height:35px}.number-input-section .number-btn .number{font-size:26px}.number-input-section .number-btn .count{font-size:9px}.encyclopedia-content-flex{display:block}.article-image-container{flex:none;width:100%;margin:16px 0}.rules-section,.encyclopedia-section{padding:20px;margin:0 6px;width:calc(100% - 32px)}.article-image,.article-image-placeholder{width:80px;height:80px}.article-info{min-height:80px}.article-title{font-size:14px}.article-excerpt{font-size:12px}}@media (max-height: 700px){.game-area{padding:0 4px}.score-value{font-size:28px}}@media (max-width: 768px) and (min-width: 401px){.number-input-section .number-btn .number{font-size:22px}.number-input-section .number-btn .count{font-size:10px}.encyclopedia-content-flex{display:block}.article-image-container{flex:none;width:100%;margin:16px 0}}@media (min-width: 769px){.number-input-section .number-btn .number{font-size:28px}.number-input-section .number-btn .count{font-size:14px}}.error-conflict-flash{animation:errorConflictFlash 2s ease-in-out}.error-flash-bg{background-color:#ff9800!important}.error-flash-bg-red{background-color:#f44336!important}.error-flash-bg-light{background-color:#ffcdd2!important}@keyframes errorConflictFlash{0%,20%,40%,60%,80%,to{background-color:#ffcdd2}10%,30%,50%,70%,90%{background-color:#f44336}}.hidden-select,.hidden-controls{display:none}[data-editor-mode=true] .game-info-section,[data-editor-mode=true] .battle-mode-info,[data-editor-mode=true] .normal-mode-info,[data-editor-mode=true] .mobile-container,[data-editor-mode=true] .new-game-btn-panel,[data-editor-mode=true] #new-game-btn-visible,[data-editor-mode=true] #portrait-new-game-btn,[data-editor-mode=true] #game-start-overlay,[data-editor-mode=true] .portrait-top,[data-editor-mode=true] .portrait-grid-toggle,[data-editor-mode=true] .portrait-func-controls,[data-editor-mode=true] .game-motivation-tip,[data-editor-mode=true] .game-complete-overlay,[data-editor-mode=true] #pause-overlay,[data-editor-mode=true] #resume-btn,[data-editor-mode=true] #continue-game-btn,[data-editor-mode=true] #pause-btn,[data-editor-mode=true] #challenge-btn,[data-editor-mode=true] .daily-badge,[data-editor-mode=true] #smart-hint-section{display:none!important}.sudoku-game-wrapper[data-editor-mode=true]{height:auto!important;overflow:visible!important}[data-editor-mode=true] .sudoku-game-scaler{width:100%!important;height:auto!important;transform:none!important;margin-bottom:0!important}[data-editor-mode=true] .center-container{width:100%!important;height:auto!important;align-items:center}.player-progress,.opponent-progress{width:50%}.control-btn.quick-pencil.active .btn-text{color:#1675e0}.control-btn.quick-pencil.active .btn-icon svg{fill:#1675e0}.control-btn.pencil.active .btn-text{color:#1675e0}.control-btn.pencil.active .btn-icon svg{fill:#1675e0}.quick-pencil-status{position:absolute;top:6px;right:6px;background:#1675e0;color:#fff;font-size:8px;width:24px;height:14px;border-radius:100px;display:flex;align-items:center;justify-content:center;line-height:1}.control-btn.quick-pencil:not(.active) .quick-pencil-status{background:#768fab;content:"OFF"}.control-btn.quick-pencil.active .quick-pencil-status{background:#1675e0;content:"ON"}.quick-pencil-status:before{content:"OFF"}.control-btn.quick-pencil.active .quick-pencil-status:before{content:"ON"}.pencil-status{position:absolute;top:6px;right:6px;background:#1675e0;color:#fff;font-size:8px;width:24px;height:14px;border-radius:100px;display:flex;align-items:center;justify-content:center;line-height:1}.control-btn.pencil:not(.active) .pencil-status{background:#768fab}.control-btn.pencil.active .pencil-status{background:#1675e0}.pencil-status:before{content:"OFF"}.control-btn.pencil.active .pencil-status:before{content:"ON"}.control-btn.undo.disabled .btn-text{color:#b8c4d1}.control-btn.undo.disabled .btn-icon svg{fill:#b8c4d1}.control-btn.erase.disabled .btn-text{color:#b8c4d1}.control-btn.erase.disabled .btn-icon svg{fill:#b8c4d1}.function-controls.game-complete .control-btn .btn-text{color:#b8c4d1}.function-controls.game-complete .control-btn .btn-icon svg{fill:#b8c4d1}.function-controls.game-complete .quick-pencil-status,.function-controls.game-complete .pencil-status,.function-controls.game-complete .hint-count{color:#b8c4d1}.battle-matching-overlay{position:fixed;z-index:1000;background:#0006;width:100%;height:100%;top:0;left:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.battle-matching-container{width:100%;height:400px;position:relative;overflow:hidden}.battle-enemy-area{clip-path:polygon(10% 0,100% 0,90% 100%,0% 100%);position:absolute;width:calc(50% + 80px);height:320px;opacity:1;transform:rotate(180deg);background:linear-gradient(180deg,#d43030,#880019);box-shadow:0 1px 6px #00000026;right:0;top:60px;animation:slideInFromRight .4s ease-out forwards}.battle-player-area{clip-path:polygon(10% 0,100% 0,90% 100%,0% 100%);position:absolute;width:calc(50% + 80px);height:320px;opacity:1;background:linear-gradient(180deg,#003a7d,#3b96ff 99.91%);box-shadow:0 2px 6px #00000073;left:0;top:20px;animation:slideInFromLeft .4s ease-out forwards}@keyframes slideInFromRight{0%{transform:rotate(180deg) translate(-100%);opacity:0}to{transform:rotate(180deg) translate(0);opacity:1}}@keyframes slideInFromLeft{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideInInfoFromRight{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}.battle-loading-avatar{position:relative;display:flex;align-items:center;justify-content:center;background:transparent!important;width:120px;height:120px;border-radius:50%}.battle-loading-icon{width:64px;height:64px;position:absolute;animation:loadingRotateScale 2s ease-in-out infinite}.battle-loading-question{font-size:32px;font-weight:900;letter-spacing:0px;line-height:46.34px;color:#fff;position:relative;z-index:2}.battle-loading-text{font-size:18px;font-weight:900;letter-spacing:0px;line-height:0px;color:#fff}@keyframes loadingRotateScale{0%{transform:rotate(0) scale(1)}25%{transform:rotate(90deg) scale(.8)}50%{transform:rotate(180deg) scale(1)}75%{transform:rotate(270deg) scale(.8)}to{transform:rotate(360deg) scale(1)}}.battle-info-module{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;z-index:10}.battle-player-info{left:25%;top:110px;animation:slideInFromLeft .4s ease-out .1s forwards;opacity:0;text-align:center;justify-content:center;align-items:center}.battle-enemy-info{right:25%;top:110px;animation:slideInInfoFromRight .4s ease-out .1s forwards;opacity:0;text-align:center;justify-content:center;align-items:center}.battle-enemy-info #enemy-avatar,.battle-enemy-info #enemy-loading-avatar{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%}.battle-level-badge{height:20px;width:60px;opacity:1;border-radius:420px;display:flex;align-items:center;justify-content:center;padding:0 12px;position:relative;z-index:12;box-sizing:border-box}.battle-player-info .battle-level-badge{background:#ed1a1a}.battle-enemy-info .battle-level-badge{background:#1675e0}.battle-level-text{font-size:12px;font-weight:900;letter-spacing:0px;line-height:17.38px;color:#fff}.battle-avatar{width:120px;height:120px;border-radius:50%;overflow:hidden;margin-bottom:8px;margin-top:-8px;border:3px solid rgba(255,255,255,.8);box-shadow:0 4px 12px #00000026}.battle-info-details{text-align:center;color:#fff}.battle-player-name{font-size:18px;font-weight:900;letter-spacing:0px;line-height:26.06px;margin-bottom:4px}.battle-country{font-size:14px;font-weight:400;letter-spacing:0px;line-height:17.38px;margin-bottom:4px;opacity:.8}.battle-wins{font-size:12px;font-weight:400;letter-spacing:0px;line-height:14.48px;opacity:.6}.battle-vs-container{position:absolute;top:calc(50% - 10px);left:50%;transform:translate(-50%,-50%);z-index:20;display:flex;align-items:center;justify-content:center;pointer-events:none}.battle-vs-icon{width:180px;height:63px;position:absolute}.battle-vs-loading{display:block!important;opacity:1;visibility:visible}.battle-vs-complete{display:none;animation:vsScaleIn .3s ease-out forwards;stroke:#fff;stroke-width:1px}.battle-vs-complete path,.battle-vs-complete use,.battle-vs-complete *{stroke:#fff!important;stroke-width:50px!important}@keyframes vsScaleIn{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@media (max-width: 1024px){.battle-matching-container{height:350px}.battle-enemy-area{height:300px;top:50px;clip-path:polygon(10% 0,100% 0,90% 100%,0% 100%)}.battle-player-area{height:300px;top:20px;clip-path:polygon(10% 0,100% 0,90% 100%,0% 100%)}.battle-player-info,.battle-enemy-info{top:80px}.battle-avatar{width:100px;height:100px}.battle-level-badge{width:60px;box-sizing:border-box}}@media (max-width: 768px){.battle-matching-container{height:300px;max-width:100%;padding:0 20px}.battle-enemy-area{height:240px;top:45px;width:calc(50% + 60px);clip-path:polygon(10% 0,100% 0,90% 100%,0% 100%)}.battle-player-area{height:240px;top:15px;width:calc(50% + 60px);clip-path:polygon(10% 0,100% 0,90% 100%,0% 100%)}.battle-player-info{top:65px;left:20px}.battle-enemy-info{top:65px;right:20px}.battle-avatar{width:80px;height:80px}.battle-vs-icon{width:140px;height:49px}.battle-level-badge{width:50px;box-sizing:border-box}}.portrait-top,.portrait-bottom,.portrait-grid-toggle{display:none}@media (min-aspect-ratio: 3/4){.portrait-top,.portrait-bottom,.portrait-grid-toggle{display:none}}@media (max-aspect-ratio: 749/1000){.center-container{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;margin-top:0;padding:0}.center-container .game-motivation-tip,.center-container .mobile-container{display:none}.center-container .portrait-top{display:flex;flex-direction:column;align-items:center;width:100%;padding:0 16px 4px;flex-shrink:0}.portrait-score-row{font-size:1.35rem;font-weight:500;color:#1675e0;line-height:1.2;padding:.85rem}.portrait-stats-row{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%}.portrait-stat-item{display:flex;align-items:center;gap:4px}.portrait-stat-item:first-child{justify-content:flex-start}.portrait-stat-item:nth-child(2){justify-content:center}.portrait-stat-item:last-child{justify-content:flex-end}.portrait-stat-label,.portrait-stat-value{font-size:14px;color:#0e2f52;white-space:nowrap}.portrait-timer-item{display:flex;align-items:center}.portrait-timer-control{display:flex;align-items:center;gap:4px;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none}.portrait-timer-icon{width:16px;height:16px}.portrait-icon-play{color:#1675e0;fill:#1675e0}.portrait-icon-pause{color:#ed1a1a;fill:#ed1a1a}.portrait-timer-icon.home-hidden,.portrait-timer-control.game-complete .portrait-timer-icon{display:none}.portrait-timer-icon.hidden{display:none!important}.portrait-timer-info{display:flex;align-items:center;gap:4px;white-space:nowrap}.center-container .sudoku-grid-wrapper{flex:0 0 auto;width:min(96%,calc(100vh - 280px));max-height:calc(100vh - 280px);min-height:200px;height:auto;aspect-ratio:1;margin:0 auto}.center-container .portrait-bottom{display:flex;flex-direction:column;align-items:stretch;width:min(96%,calc(100vh - 280px));margin:0 auto;padding:4px 0 0;gap:.5rem;flex-shrink:0}.portrait-func-controls{display:flex;justify-content:space-around;align-items:center;width:100%;padding:0;margin:0 auto}.portrait-ctrl-btn{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:none;cursor:pointer;transition:all .2s;min-width:60px;position:relative;padding:4px;border-radius:8px}.portrait-ctrl-btn.active{background:#4a90e21a}.portrait-ctrl-btn.active .portrait-btn-text{color:#1675e0}.portrait-ctrl-btn.active .portrait-btn-icon svg{fill:#1675e0}.portrait-btn-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.portrait-btn-icon svg{width:100%;height:100%;fill:#0e2f52}.portrait-btn-text{font-size:12px;font-weight:500;color:#0e2f52}.portrait-hint-count{position:absolute;top:4px;right:4px;background:#f44336;color:#fff;font-size:10px;font-weight:700;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center}.portrait-quick-pencil-status{position:absolute;top:4px;right:4px;background:#1675e0;color:#fff;font-size:8px;width:24px;height:14px;border-radius:100px;display:flex;align-items:center;justify-content:center;line-height:1}.portrait-ctrl-btn:not(.active) .portrait-quick-pencil-status{background:#768fab}.portrait-ctrl-btn.active .portrait-quick-pencil-status{background:#1675e0}.portrait-quick-pencil-status:before{content:"OFF"}.portrait-ctrl-btn.active .portrait-quick-pencil-status:before{content:"ON"}.portrait-pencil-status{position:absolute;top:4px;right:4px;background:#1675e0;color:#fff;font-size:8px;width:24px;height:14px;border-radius:100px;display:flex;align-items:center;justify-content:center;line-height:1}.portrait-ctrl-btn:not(.active) .portrait-pencil-status{background:#768fab}.portrait-ctrl-btn.active .portrait-pencil-status{background:#1675e0}.portrait-pencil-status:before{content:"OFF"}.portrait-ctrl-btn.active .portrait-pencil-status:before{content:"ON"}.portrait-num-section{width:100%;margin:0;background:#ffffff1a;backdrop-filter:blur(10px);border-radius:12px;border:1px solid rgba(255,255,255,.2);box-sizing:border-box}.portrait-num-buttons{display:grid;grid-template-columns:repeat(9,1fr);gap:6px;width:100%;box-sizing:border-box}.portrait-num-btn{background:#fff;box-shadow:0 2px 4px #0322451a;border-radius:4px;height:56px;min-width:0;width:100%;border:1px solid rgba(22,117,224,.2);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;position:relative;box-sizing:border-box}.portrait-num-btn .p-number{font-size:26px;color:#1675e0;line-height:1.3;font-weight:350}.portrait-num-btn .p-count{font-size:12px;color:#768fab;line-height:1}.portrait-num-btn:hover{transform:translateY(-1px)}.portrait-num-btn.selected{background:#4598f8;box-shadow:0 2px 8px #1675e066;border-radius:4px;opacity:1;transform:scale(1.05)}.portrait-num-btn.selected .p-number{color:#fff}.portrait-num-btn.selected .p-count{color:#fffc}.portrait-num-btn:not(.selected){opacity:.4}.portrait-num-btn.completed{background:#e0e0e0;color:#999;cursor:not-allowed}.portrait-new-game-btn{width:100%;min-height:46px;padding:10px 16px;margin:0;background:#1976d2;color:#fff;border:none;border-radius:4px;font-size:15px;font-weight:500;cursor:pointer;text-align:center;display:block;box-sizing:border-box}.portrait-daily-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin:0}.portrait-daily-nav-btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border:none;border-radius:8px;background:#1675e0;color:#fff;font-size:15px;font-weight:600;box-shadow:0 6px 14px #1675e033;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;outline:none;transition:background-color .15s ease,opacity .15s ease;text-align:center;white-space:nowrap;box-sizing:border-box}.portrait-daily-nav-btn:hover{background:#1268c8}.portrait-daily-nav-btn:active{background:#0f5eb5}.portrait-daily-nav-btn:focus-visible{box-shadow:0 0 0 3px #1675e038}.portrait-daily-nav-btn.secondary{background:#eef6ff;color:#1675e0;border:1px solid #1675e0;box-shadow:none}.portrait-daily-nav-btn.secondary:hover{background:#e1f0ff}.portrait-daily-nav-btn.secondary:active{background:#d6eaff}.portrait-daily-nav-btn:disabled{background:#c8d6e5;color:#a0b4c8;box-shadow:none;cursor:not-allowed;pointer-events:none}.portrait-daily-nav-btn.secondary:disabled{background:#eef0f2;color:#b0bec5;border-color:#cfd8dc;cursor:not-allowed;pointer-events:none}.portrait-grid-toggle{display:flex;justify-content:flex-end;width:100%;padding:4px 16px 0}.portrait-grid-label{display:block;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none}.portrait-grid-label input{display:none}.portrait-toggle-switch{width:32px;height:16px;background:#768fab;border-radius:8px;position:relative;transition:background-color .3s;display:flex;align-items:center;padding:2px;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline:none}.portrait-toggle-icon{width:12px;height:12px;color:#fff;transition:transform .3s;position:absolute;left:2px}.portrait-grid-label input:checked+.portrait-toggle-switch{background:#1675e0}.portrait-grid-label input:checked+.portrait-toggle-switch .portrait-toggle-icon{transform:translate(16px)}}[data-editor-mode=true] .center-container .sudoku-grid-wrapper{width:100%!important;max-width:100%!important;min-height:0!important;max-height:none!important;height:auto!important;aspect-ratio:1}.sudoku-game-wrapper{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.sudoku-game-scaler{transform-origin:top center;flex-shrink:0}@media (max-aspect-ratio: 749/1000){.sudoku-game-scaler{width:400px;height:660px}.center-container .sudoku-play-area{width:100%}.center-container .sudoku-grid-wrapper{width:min(96%,420px)!important;max-height:420px!important}.center-container .portrait-bottom{width:min(96%,420px)!important}[data-variant=samurai] .sudoku-game-scaler{width:440px;height:720px}[data-variant=samurai] .center-container .sudoku-grid-wrapper{width:min(96%,460px)!important;max-height:400px!important}[data-variant=samurai] .center-container .portrait-bottom{width:min(96%,460px)!important}}@media (min-aspect-ratio: 3/4){.sudoku-game-scaler{width:1000px;height:650px}.center-container{width:1000px!important}.zoom-control-container{display:none!important}}
