:root,[data-theme=dark]{--lightup-frame:#8c6d62;--lightup-bulb-color:#fde047;--lightup-conflict-bulb-color:#ef4444;--lightup-conflict-bulb:#ef4444;--lightup-conflict-bulb-ink:#ffffff;--lightup-conflict-path:#5c1f1f;--lightup-conflict-edge:#ef4444;--lightup-cell-bg:#241b18;--lightup-grid-line:#5a463d;--lightup-hover-bg:#3a2c26;--cell-border:#4d3a33;--wall-border:#6b5449;--lightup-wall-bg:#2b211d;--lightup-wall-edge:#6b5449;--lightup-wall-text:#fdf8f6;--lightup-lit-bg:#6b5220;--lightup-lit-border:#c99a3a;--lightup-bulb-cell:#f8a81d;--lightup-bulb-core:#fffdf5;--lightup-bulb-edge:#6b2f0a;--lightup-error-bg:#4a1c1c;--bg-primary:#171210;--bg-secondary:#241b18;--bg-tertiary:#352823;--bg-card:#241b18;--border-color:#4d3a33;--border-thick:#8c6d62;--text-main:#fdf8f6;--text-muted:#a8938b;--accent-blue:#f8a81d;--accent-cyan:#fbbf24;--accent-emerald:#f8a81d;--accent-amber:#f8a81d;--accent-red:#ef4444;--accent-purple:#c084fc;--cell-user-val:#fbbf24;--cell-center-notes:#fcd34d;--cell-corner-notes:#cbd5e1;--cell-hover-bg:rgba(248, 168, 29, 0.12);--cell-selected-bg:rgba(248, 168, 29, 0.28);--cell-selected-outline:#f8a81d;--cell-peer-bg:rgba(53, 40, 35, 0.55);--cell-same-digit-bg:rgba(217, 119, 6, 0.38);--cell-conflict-bg:rgba(239, 68, 68, 0.35);--cell-conflict-color:#fca5a5;--candidate-highlight-color:#171210;--candidate-highlight-bg:#fde68a;--hint-primary-bg:rgba(248, 168, 29, 0.32);--hint-primary-border:#f8a81d;--hint-secondary-bg:rgba(217, 119, 6, 0.32);--hint-secondary-border:#d97706;--btn-bg:#241b18;--btn-border:#4d3a33;--btn-text:#fdf8f6;--btn-hover-bg:#352823;--btn-hover-border:#6d544b;--btn-hover-text:#ffffff;--btn-primary-bg:linear-gradient(135deg, #d97706, #b45309);--btn-primary-border:#92400e;--btn-primary-text:#ffffff;--btn-success-bg:linear-gradient(135deg, #f8a81d, #d97706);--btn-success-border:#b45309;--btn-success-text:#ffffff;--btn-hint-bg:linear-gradient(135deg, #f8a81d, #d97706);--btn-hint-border:#b45309;--btn-hint-text:#ffffff;--btn-hint-shadow:0 2px 12px rgba(248, 168, 29, 0.35);--btn-active-bg:#d97706;--btn-active-border:#f8a81d;--btn-active-text:#ffffff;--btn-active-shadow:0 0 12px rgba(248, 168, 29, 0.45);--key-bg:#241b18;--key-border:#352823;--key-text:#fdf8f6;--key-hover-bg:#352823;--key-hover-border:#4d3a33;--key-hover-text:#f8a81d;--key-shadow:0 1px 3px rgba(0, 0, 0, 0.3);--mode-dock-bg:#241b18;--mode-dock-border:#352823;--mode-btn-text:#a8938b;--mode-btn-hover-bg:#352823;--mode-btn-hover-text:#fdf8f6;--mode-btn-active-bg:#d97706;--mode-btn-active-text:#ffffff;--mode-btn-active-border:#f8a81d;--mode-btn-active-shadow:0 2px 8px rgba(248, 168, 29, 0.4);--hint-card-bg:#241b18;--hint-card-border:#f8a81d;--hint-card-shadow:0 16px 36px rgba(0, 0, 0, 0.6),0 0 0 1px rgba(248, 168, 29, 0.3);--hint-title-color:#fdf8f6;--hint-explanation-color:#ddd2cb;--hint-badge-type-bg:rgba(248, 168, 29, 0.25);--hint-badge-type-color:#fcd34d;--hint-badge-type-border:rgba(248, 168, 29, 0.4);--timer-bg:#352823;--timer-border:#4d3a33;--timer-text:#fbbf24;--logo-gradient:linear-gradient(135deg, #f8a81d, #fdba74);--cell-size:58px;--board-max-width:540px}*{box-sizing:border-box;margin:0;padding:0;user-select:none}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background-color:var(--bg-primary);color:var(--text-main);min-height:100vh;display:flex;flex-direction:column}.app-header{background-color:var(--bg-secondary);border-bottom:1px solid var(--border-color);padding:12px 24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:12px}.logo-area{display:flex;align-items:center;gap:10px}.logo-icon{font-size:28px}.logo-icon-svg{width:32px;height:32px;object-fit:contain;display:block;flex-shrink:0;transition:transform .25s cubic-bezier(.34, 1.56, .64, 1)}.logo-icon-svg:hover{transform:rotate(6deg) scale(1.1)}.logo-title{display:inline-flex;align-items:center;gap:6px;font-size:22px;font-weight:700;background:var(--logo-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.logo-heart{display:inline-block;font-size:19px;line-height:1;-webkit-text-fill-color:initial;background:0 0;filter:drop-shadow(0 0 5px rgba(239, 68, 68, .45));vertical-align:middle}.header-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;row-gap:6px}.app-header.header-controls-wrapped .header-controls,.app-header.header-controls-wrapped .header-right-group{justify-content:center}.header-utility-group{display:flex;align-items:center;gap:8px;flex-shrink:0}.header-right-group{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex:1 1 auto}.app-header .btn-language{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:34px;min-width:52px;padding:0 6px;border-radius:999px;border:1px solid var(--btn-border);background:var(--btn-bg);color:var(--btn-text);font-size:11px;font-weight:800;letter-spacing:.02em;cursor:pointer;flex-shrink:0}.app-header .btn-language:focus-visible,.app-header .btn-language:hover{border-color:var(--accent-amber);color:var(--accent-amber);background:var(--btn-hover-bg)}.app-header .btn-language svg{width:15px;height:15px;flex-shrink:0}.header-row-divider{display:none;width:70%;max-width:70%;height:1px;background:var(--border-color);margin:4px auto;opacity:.85;order:1;flex-basis:70%;flex-shrink:0}.header-row-divider.visible{display:block!important}@media (max-width:820px){.app-header{padding:8px 14px;row-gap:6px;justify-content:space-between}.header-controls{width:auto;justify-content:flex-end;flex-wrap:wrap;gap:8px}.header-right-group{flex:1 1 auto;width:auto;justify-content:center}.header-utility-group{flex-shrink:0}}#btn-sudoku-next-diff,#btn-sudoku-prev-diff{display:none!important}.diff-select-group{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--text-muted)}.select-input{background-color:var(--bg-tertiary);color:var(--text-main);border:1px solid var(--border-color)}.game-timer{display:inline-flex;align-items:center;gap:6px;background:var(--bg-tertiary);border:none!important;outline:0!important;box-shadow:none!important;border-radius:8px;padding:0 10px;height:36px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13.5px;font-weight:700;color:var(--accent-amber);user-select:none;box-sizing:border-box;flex-shrink:0}.game-timer svg{width:14px;height:14px;color:var(--accent-amber);flex-shrink:0}.game-timer .timer-digits{letter-spacing:.5px}.btn-timer-pause{color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center;margin-left:2px}.btn-timer-pause:hover{color:var(--accent-amber);background:var(--cell-hover-bg)}.timer-box{display:none!important}.btn-icon-subtle{background:0 0;border:none;color:var(--text-muted);cursor:pointer;font-size:12px}.btn-icon-subtle:hover{color:var(--text-main)}.main-layout{display:flex;flex:1;justify-content:center;align-items:flex-start;padding:24px;gap:32px;max-width:1200px;margin:0 auto;width:100%}.controls-lower-area{position:relative;display:flex;flex-direction:column;gap:16px;width:100%}.board-column{display:flex;flex-direction:column;align-items:center;gap:16px}.sudoku-top-bar{display:flex!important;justify-content:space-between!important;align-items:center!important;width:min(88vw,var(--board-max-width))!important;margin:0 auto 6px!important;padding:0 4px!important;background:0 0!important;border:none!important;border-radius:0!important;box-shadow:none!important}.sudoku-top-bar .game-timer{margin-left:auto!important}#btn-theme-cycle.is-ereader-locked,#btn-theme-cycle:disabled{opacity:.55!important;cursor:not-allowed!important}.sudoku-diff-left{display:inline-flex;align-items:center;gap:8px}.diff-meta-label,.sudoku-diff-left .diff-meta-label{font-size:13px;font-weight:600;color:var(--text-muted)}.board-difficulty-area .diff-badge,.sudoku-diff-left .diff-badge{font-size:12px;font-weight:700;padding:4px 10px;border-radius:6px;letter-spacing:.3px;text-transform:uppercase;box-shadow:0 1px 3px rgba(0,0,0,.1)}.btn-copy-puzzle-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:6px;color:var(--text-muted);font-size:12.5px;font-weight:600;cursor:pointer;transition:.15s}.btn-copy-puzzle-badge:hover{color:var(--accent-amber);border-color:var(--accent-amber);background-color:var(--btn-hover-bg);transform:scale(1.05)}.board-wrapper{position:relative;width:min(88vw,var(--board-max-width));height:min(88vw,var(--board-max-width));background-color:var(--bg-secondary);box-shadow:0 10px 25px -5px rgba(0,0,0,.5),0 8px 10px -6px rgba(0,0,0,.5);border:3px solid var(--border-thick);overflow:hidden;touch-action:none}.board-grid-wrapper{width:100%;height:100%;touch-action:none}.board-wrapper.paused .sudoku-grid{filter:blur(8px)}.sudoku-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:100%;height:100%;position:relative;touch-action:none}.sudoku-box{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);border:1.5px solid var(--border-thick);touch-action:none}.sudoku-cell{position:relative;border:.5px solid var(--border-color);display:flex;align-items:center;justify-content:center;cursor:pointer;background-color:var(--bg-secondary);transition:background-color .12s;touch-action:none;-webkit-touch-callout:none}.sudoku-cell:hover{background-color:var(--cell-hover-bg)}.cell-color-layer{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.cell-circle-layer{position:absolute;top:6%;left:6%;width:88%;height:88%;border-radius:50%;border:3px solid var(--accent-red);pointer-events:none;display:none;z-index:3}.cell-value{position:relative;font-size:clamp(22px, 4.5vw, 34px);font-weight:600;z-index:2;color:var(--cell-user-val)}.sudoku-cell.given .cell-value{color:var(--text-main);font-weight:800}.cell-corner-notes{position:absolute;top:2px;left:2px;right:2px;bottom:2px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);z-index:4;pointer-events:none}.corner-note{display:flex;align-items:center;justify-content:center;font-size:clamp(9px, 1.6vw, 13px);font-weight:500;color:var(--cell-corner-notes)}.corner-pos-1{grid-area:1/1}.corner-pos-2{grid-area:1/2}.corner-pos-3{grid-area:1/3}.corner-pos-4{grid-area:2/1}.corner-pos-5{grid-area:2/2}.corner-pos-6{grid-area:2/3}.corner-pos-7{grid-area:3/1}.corner-pos-8{grid-area:3/2}.corner-pos-9{grid-area:3/3}.cell-center-notes{position:absolute;display:flex;align-items:center;justify-content:center;font-size:clamp(10px, 1.8vw, 14px);color:var(--cell-center-notes);z-index:2;pointer-events:none;letter-spacing:1px}.sudoku-cell.selected{background-color:var(--cell-selected-bg)!important;outline:2px solid var(--cell-selected-outline);outline-offset:-2px;z-index:4}.sudoku-cell.peer-highlight{background-color:var(--cell-peer-bg)}.sudoku-cell.same-digit{background-color:var(--cell-same-digit-bg)!important}.sudoku-cell.cell-conflict{background-color:var(--cell-conflict-bg)!important;color:var(--cell-conflict-color)!important}.corner-note.highlighted-candidate{color:var(--candidate-highlight-color)!important;font-weight:800;background-color:var(--candidate-highlight-bg);border-radius:3px}.sudoku-cell.hint-primary{background-color:var(--hint-primary-bg)!important;box-shadow:inset 0 0 0 2px var(--hint-primary-border)}.sudoku-cell.hint-secondary{background-color:var(--hint-secondary-bg)!important;box-shadow:inset 0 0 0 2px var(--hint-secondary-border)}.sudoku-cell.hint-has-elimination{box-shadow:inset 0 0 0 2px var(--accent-red)}.corner-note.eliminated-candidate{color:#ef4444!important;text-decoration:line-through;font-weight:700;background-color:rgba(239,68,68,.3);border-radius:3px}.corner-note.placed-candidate{color:#f8a81d!important;font-weight:800;background-color:rgba(248,168,29,.35);border-radius:3px;animation:1.5s infinite pulse-gold}@keyframes pulse-gold{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}.corner-note.arrow-endpoint-note{position:relative;font-weight:800!important;color:#fff!important;border:2px solid var(--arrow-color,#3b82f6)!important;background-color:var(--arrow-bg,rgba(59,130,246,.45))!important;box-shadow:0 0 6px var(--arrow-color,#f8a81d)!important;border-radius:4px!important;width:92%!important;height:92%!important;margin:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;z-index:5!important;transition:.1s!important}.corner-note.arrow-endpoint-note.endpoint-preview{border-style:dashed!important;box-shadow:0 0 8px var(--arrow-color,#f8a81d)!important;transform:scale(1.08)!important}[data-theme=dark] .corner-note.arrow-endpoint-note{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.6)}.svg-overlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:5}.svg-overlay path.arrow-path{cursor:pointer;pointer-events:stroke;transition:opacity .15s,stroke-width .15s}.svg-overlay path.arrow-path:hover{opacity:1!important;stroke-width:4.2px!important}.controls-column{display:flex;flex-direction:column;gap:16px;width:380px;max-width:100%}.mode-segmented-bar,.mode-segmented-bar-2{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;background:var(--mode-dock-bg);padding:5px;border-radius:10px;border:1px solid var(--mode-dock-border)}.mode-btn{background-color:transparent;color:var(--mode-btn-text);border:1px solid transparent;border-radius:7px;padding:10px 0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.15s}.mode-btn:hover{background:var(--mode-btn-hover-bg);color:var(--mode-btn-hover-text)}.mode-btn.active{background:var(--mode-btn-active-bg)!important;color:var(--mode-btn-active-text)!important;border-color:var(--mode-btn-active-border)!important;box-shadow:var(--mode-btn-active-shadow)!important;font-weight:600}.btn-icon{display:inline-flex;align-items:center;justify-content:center}.color-palette-bar{display:flex;align-items:center;justify-content:center;gap:8px;background-color:var(--bg-secondary);padding:8px;border-radius:8px;border:1px solid var(--border-color)}.color-swatch{width:28px;height:28px;border-radius:50%;border:2px solid transparent;cursor:pointer;transition:transform .15s}.color-swatch:hover{transform:scale(1.15)}.color-swatch.active{border-color:#fff;transform:scale(1.18);box-shadow:0 0 8px rgba(255,255,255,.6)}.keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.sudoku-drawing-panel,.sudoku-mobile-actions,.sudoku-stat-hints,.sudoku-topbar-actions{display:none}.key-btn{background:var(--key-bg);border:1px solid var(--key-border);color:var(--key-text);border-radius:8px;font-size:24px;font-weight:600;padding:14px 0;cursor:pointer;transition:.12s;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--key-shadow)}.key-btn:hover{background:var(--key-hover-bg);border-color:var(--key-hover-border);color:var(--key-hover-text);transform:translateY(-1px)}.key-btn:active{transform:translateY(1px)}.key-btn.active{background:var(--btn-active-bg)!important;border-color:var(--btn-active-border)!important;color:var(--btn-active-text)!important;box-shadow:var(--btn-active-shadow)!important;transform:scale(1.03)}.key-btn.action-key{font-size:18px;color:var(--text-muted);display:flex;align-items:center;justify-content:center}.action-buttons-row{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.btn{background:var(--btn-bg);border:1px solid var(--btn-border);color:var(--btn-text);border-radius:6px;padding:10px 14px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:.15s}.btn:hover{background:var(--btn-hover-bg);border-color:var(--btn-hover-border);color:var(--btn-hover-text)}.btn.active{background:var(--btn-active-bg)!important;border-color:var(--btn-active-border)!important;color:var(--btn-active-text)!important;box-shadow:var(--btn-active-shadow)!important}.btn-primary{background:var(--btn-primary-bg)!important;border:1px solid var(--btn-primary-border)!important;color:var(--btn-primary-text)!important}.btn-primary:hover{filter:brightness(1.08)}.btn-success{background:var(--btn-success-bg)!important;border:1px solid var(--btn-success-border)!important;color:var(--btn-success-text)!important;box-shadow:0 2px 10px rgba(248,168,29,.35);font-weight:600}.btn-success:hover{filter:brightness(1.12);transform:translateY(-1px);box-shadow:0 4px 14px rgba(248,168,29,.45)}.btn-danger{background:var(--accent-red)!important;border:1px solid var(--accent-red)!important;color:#fff!important;font-weight:600}.btn-danger:disabled{opacity:.5;cursor:not-allowed}.btn-hint{background:var(--btn-hint-bg)!important;border:1px solid var(--btn-hint-border)!important;color:var(--btn-hint-text)!important;box-shadow:var(--btn-hint-shadow)!important;font-weight:600}.btn-hint:hover{filter:brightness(1.1)}.btn-sm{padding:6px 10px;font-size:12px}.eraser-tools-group{display:flex;gap:12px;justify-content:center;width:100%}.eraser-tools-group .btn{flex:1;max-width:80px;padding:8px 0;display:flex;align-items:center;justify-content:center}.hint-card{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(400px,calc(100vw - 32px));max-height:min(420px,calc(100dvh - 32px));box-sizing:border-box;background:var(--hint-card-bg);border:2px solid var(--hint-card-border);border-radius:10px;padding:16px;display:none;flex-direction:column;justify-content:flex-start;box-shadow:var(--hint-card-shadow);animation:.2s cubic-bezier(.16,1,.3,1) hint-card-in;z-index:100;overflow-y:auto}@keyframes hint-card-in{from{opacity:0;transform:translate(-50%,-48%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.hint-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.hint-badges{display:flex;align-items:center;gap:6px}.close-hint-btn{background:0 0;border:none;font-size:22px;line-height:1;color:var(--text-muted);cursor:pointer;padding:2px 6px;border-radius:4px;transition:.15s}.close-hint-btn:hover{color:var(--text-main);background-color:var(--bg-tertiary)}.hint-type-badge{background:var(--hint-badge-type-bg);color:var(--hint-badge-type-color);border:1px solid var(--hint-badge-type-border);padding:3px 8px;border-radius:6px;font-size:12px;font-weight:600}.hint-difficulty-badge{background:var(--bg-tertiary);color:var(--text-main);border:1px solid var(--border-color);padding:3px 8px;border-radius:6px;font-size:12px;font-weight:600}.hint-title{font-size:16px;font-weight:700;margin-bottom:8px;color:var(--text-main)}.hint-explanation{font-size:13.5px;line-height:1.6;color:var(--text-main);margin-bottom:12px;flex:0 1 auto;overflow-y:auto}.hint-actions{display:flex;gap:10px;margin-top:auto}.hint-actions .btn{flex:1;padding:9px 12px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,.7);display:none;align-items:center;justify-content:center;z-index:100;backdrop-filter:blur(4px)}.modal-overlay.active{display:flex}.modal-content{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;width:90%;max-width:580px;max-height:85vh;overflow-y:auto;padding:24px;box-shadow:0 20px 25px -5px rgba(0,0,0,.6)}.practice-modal-content{max-width:900px}.modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border-color);padding-bottom:14px;margin-bottom:16px}.modal-header h2{font-size:20px;font-weight:700;display:flex;align-items:center;gap:8px}.close-modal-btn{background:0 0;border:none;font-size:26px;color:var(--text-muted);cursor:pointer}.close-modal-btn:hover{color:var(--text-main)}.practice-intro{font-size:14px;color:var(--text-muted);margin-bottom:20px;line-height:1.5}.practice-category-group{margin-bottom:22px}.category-title{font-size:16px;font-weight:700;color:var(--accent-amber);margin-bottom:12px;border-left:3px solid var(--accent-cyan);padding-left:8px}.techniques-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}.technique-card{background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;padding:12px;display:flex;flex-direction:column;justify-content:space-between;gap:8px;transition:transform .15s,border-color .15s}.technique-card:hover{transform:translateY(-2px);border-color:var(--accent-amber)}.technique-header{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}.technique-name{font-size:14px;font-weight:600;color:var(--text-main)}.diff-badge{font-size:11px;font-weight:600;padding:2px 6px;border-radius:4px;text-transform:uppercase;white-space:nowrap}.technique-desc{font-size:12px;color:var(--text-muted);line-height:1.4;margin-bottom:6px}.custom-puzzle-textarea{width:100%;height:120px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:6px;color:var(--text-main);padding:12px;font-family:monospace;font-size:14px;margin:12px 0;resize:vertical}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(50px);background-color:#1e293b;color:#fff;padding:10px 20px;border-radius:30px;box-shadow:0 10px 15px -3px rgba(0,0,0,.4);border:1px solid #475569;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:1000}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media (max-width:900px){.main-layout{flex-direction:column;align-items:center;padding:16px;gap:20px}.controls-column{width:min(92vw,var(--board-max-width))}}.custom-tooltip{position:fixed;display:none;background-color:rgba(15,23,42,.98);color:#f8fafc;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;line-height:1.3;letter-spacing:.2px;white-space:nowrap;pointer-events:none;z-index:999999;border:1px solid #475569;box-shadow:0 8px 24px rgba(0,0,0,.6);backdrop-filter:blur(8px);opacity:0;transform:translateY(2px);transition:opacity .1s,transform .1s}.custom-tooltip.visible{display:block;opacity:1;transform:translateY(0)}button svg{pointer-events:none}.custom-tooltip::after{content:'';position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);border-width:5px 5px 0;border-style:solid;border-color:#475569 transparent transparent}.custom-tooltip.tooltip-below::after{bottom:auto;top:-5px;border-width:0 5px 5px;border-color:transparent transparent #475569}.practice-banner{display:flex;justify-content:space-between;align-items:flex-start;width:min(88vw,var(--board-max-width));margin:0 auto 6px;padding:0 2px;background:0 0!important;border:none!important;box-shadow:none!important;box-sizing:border-box;animation:.2s practice-slide-in}@keyframes practice-slide-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.practice-banner-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}.practice-banner-row-1{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.practice-banner-row-2{display:flex;align-items:center}.practice-badge{background-color:rgba(168,85,247,.2);color:#c084fc;font-size:11px;font-weight:700;padding:2px 7px;border-radius:4px;text-transform:uppercase;letter-spacing:.5px;line-height:1.2}.practice-tech-title{font-size:14.5px;font-weight:700;color:var(--text-main);line-height:1.2}.practice-puzzle-counter{font-size:12px;font-weight:600;color:var(--text-muted);line-height:1.3}.practice-banner-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.practice-banner-actions .btn{width:34px;min-width:34px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:0;font-size:0;border-radius:6px;box-sizing:border-box;white-space:nowrap;line-height:1}.practice-banner-actions .btn svg{display:block;flex-shrink:0;width:18px;height:18px}.practice-banner-actions .close-practice-btn{padding:0!important;width:34px;color:var(--text-muted)}.practice-banner-actions .close-practice-btn:hover{color:var(--accent-red)!important}@media (max-width:640px){#game-view-sudoku .practice-banner{width:min(calc(100vw - 8px),var(--board-max-width))!important;max-width:calc(100vw - 8px)!important;margin:0 auto 6px!important;padding:0 2px!important;align-items:flex-start!important;justify-content:flex-start!important;background:0 0!important;border:none!important;box-shadow:none!important}#game-view-sudoku .practice-banner-info{align-items:flex-start!important;text-align:left!important}#game-view-sudoku .practice-banner-actions{display:none!important}}@media (max-width:820px){.app-header{justify-content:space-between!important;flex-wrap:nowrap!important}.app-header>.logo-area{width:auto!important;flex:0 1 auto;justify-content:flex-start!important;order:0}.app-header>.header-right-group{width:auto;flex:1 1 auto;justify-content:center;order:1}.app-header>.header-utility-group{order:2;flex-shrink:0}}.technique-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border-color);min-width:0;width:100%}.puzzle-selector-group{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;overflow:hidden}.puzzle-select{width:100%;min-width:0;max-width:100%;background-color:var(--bg-secondary);color:var(--text-main);border:1px solid var(--border-color);border-radius:6px;padding:6px 8px;font-size:12px;font-weight:500;cursor:pointer;outline:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.puzzle-select:focus,.puzzle-select:hover{border-color:var(--accent-blue)}.load-tech-btn{flex-shrink:0;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;border-radius:6px}.diff-very-easy{background-color:#fef9c3;color:#854d0e;border:1px solid #fde047}.diff-easy{background-color:#ccfbf1;color:#115e59;border:1px solid #5eead4}.diff-moderately-easy{background-color:#e0f2fe;color:#075985;border:1px solid #7dd3fc}.diff-medium,.diff-moderate{background-color:#e0e7ff;color:#3730a3;border:1px solid #a5b4fc}.diff-moderately-hard{background-color:#ede9fe;color:#5b21b6;border:1px solid #c4b5fd}.diff-hard{background-color:#fef3c7;color:#92400e;border:1px solid #fcd34d}.diff-vicious{background-color:#ffedd5;color:#9a3412;border:1px solid #fdba74}.diff-fiendish{background-color:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.diff-devilish{background-color:#fae8ff;color:#86198f;border:1px solid #f0abfc}.diff-hell{background-color:#fce7f3;color:#9d174d;border:1px solid #f9a8d4}.diff-beyond-hell{background-color:#ffe4e6;color:#9f1239;border:1px solid #fda4af}[data-theme=dark] .diff-very-easy{background-color:rgba(248,168,29,.18);color:#fbbf24;border-color:rgba(248,168,29,.4)}[data-theme=dark] .diff-easy{background-color:rgba(20,184,166,.2);color:#2dd4bf;border-color:rgba(20,184,166,.4)}[data-theme=dark] .diff-moderately-easy{background-color:rgba(6,182,212,.2);color:#22d3ee;border-color:rgba(6,182,212,.4)}[data-theme=dark] .diff-medium,[data-theme=dark] .diff-moderate{background-color:rgba(56,189,248,.2);color:#38bdf8;border:1px solid rgba(56,189,248,.4)}[data-theme=dark] .diff-moderately-hard{background-color:rgba(99,102,241,.25);color:#a5b4fc;border-color:rgba(99,102,241,.4)}[data-theme=dark] .diff-hard{background-color:rgba(245,158,11,.2);color:#fbbf24;border-color:rgba(245,158,11,.4)}[data-theme=dark] .diff-vicious{background-color:rgba(249,115,22,.2);color:#fb923c;border-color:rgba(249,115,22,.4)}[data-theme=dark] .diff-fiendish{background-color:rgba(239,68,68,.2);color:#f87171;border-color:rgba(239,68,68,.4)}[data-theme=dark] .diff-devilish{background-color:rgba(168,85,247,.2);color:#c084fc;border-color:rgba(168,85,247,.4)}[data-theme=dark] .diff-hell{background-color:rgba(236,72,153,.2);color:#f472b6;border-color:rgba(236,72,153,.4)}[data-theme=dark] .diff-beyond-hell{background-color:rgba(225,29,72,.25);color:#fda4af;border-color:rgba(225,29,72,.4)}.sudoku-cell.check-valid{background-color:rgba(248,168,29,.22)!important;box-shadow:inset 0 0 0 2px var(--accent-amber)!important;animation:.4s check-pulse-valid}.sudoku-cell.check-error{animation:.4s cubic-bezier(.36,.07,.19,.97) check-shake-error}@keyframes check-pulse-valid{0%{transform:scale(.96)}50%{transform:scale(1.03)}100%{transform:scale(1)}}@keyframes check-shake-error{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-3px)}40%,80%{transform:translateX(3px)}}.practice-theory-modal{max-width:980px!important;max-height:92vh!important;display:flex;flex-direction:column}.theory-header{margin-bottom:12px}.theory-title-group{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0;flex:1}#btn-back-to-library{flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:34px!important;height:34px!important;padding:0 11px!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border-color)!important;border-radius:8px!important;background:var(--bg-tertiary)!important;color:var(--text-main)!important;font-size:13px!important;font-weight:600;line-height:1;white-space:nowrap}#btn-back-to-library:hover{border-color:var(--accent-amber);color:var(--accent-amber);background:var(--btn-hover-bg)}#btn-back-to-library svg{width:16px;height:16px;flex:0 0 auto}.theory-main-title{font-size:18px!important;margin:0;display:inline-flex;align-items:center;gap:6px}@media (max-width:420px){.theory-title-group{gap:7px}#btn-back-to-library{width:auto!important;padding:0 9px!important}#btn-back-to-library span{display:inline}.theory-main-title{font-size:16px!important}}.category-pill{font-size:12px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);padding:3px 8px;border-radius:6px;color:var(--text-muted)}.theory-body-layout{display:grid;grid-template-columns:1.15fr 0.85fr;gap:20px;margin-bottom:16px;overflow-y:auto;padding-right:4px}@media (max-width:860px){.theory-body-layout{grid-template-columns:1fr;gap:16px}}.theory-text-column{display:flex;flex-direction:column;gap:12px}.theory-card{background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;padding:14px}.theory-card.tip-card{border-color:rgba(248,168,29,.4);background:rgba(248,168,29,.08)}.theory-card-title{font-size:14px;font-weight:700;color:var(--accent-amber);margin-bottom:6px;display:flex;align-items:center;gap:6px}.theory-card-content{font-size:13.5px;line-height:1.6;color:var(--text-main);user-select:text}.theory-interactive-column{display:flex;flex-direction:column;align-items:center;gap:12px}.interactive-step-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%}.step-nav-btn{background-color:var(--btn-bg);border:1px solid var(--btn-border);color:var(--btn-text);border-radius:8px;padding:8px 4px;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;font-size:12px;font-weight:600;transition:.15s}.step-nav-btn:hover{background-color:var(--btn-hover-bg);border-color:var(--accent-amber)}.step-nav-btn.active{background-color:var(--btn-active-bg)!important;border-color:var(--accent-amber)!important;color:#fff!important;box-shadow:0 0 10px rgba(248,168,29,.35)}.step-num{width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.2);display:inline-flex;align-items:center;justify-content:center;font-size:11px}.step-explanation-box{background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;padding:10px 14px;width:100%}.step-exp-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.step-exp-tag{font-size:11px;font-weight:700;color:var(--accent-amber);text-transform:uppercase}.step-exp-title{font-size:13px;font-weight:700;color:var(--text-main)}.step-exp-text{font-size:12.5px;line-height:1.5;color:var(--text-main)}.mini-board-wrapper{width:290px;height:290px;margin:0 auto;border-radius:8px;border:2px solid var(--border-thick);background-color:var(--bg-secondary);box-shadow:0 4px 14px rgba(0,0,0,.3);overflow:hidden}.mini-sudoku-grid{display:grid;grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(9,1fr);width:100%;height:100%}.mini-cell{position:relative;border:.5px solid var(--border-color);display:flex;align-items:center;justify-content:center;background-color:var(--bg-secondary);transition:.15s}.mini-cell.border-right-thick{border-right:2px solid var(--border-thick)!important}.mini-cell.border-bottom-thick{border-bottom:2px solid var(--border-thick)!important}.mini-cell-val{font-size:15px;font-weight:700;color:var(--cell-user-val)}.mini-cell-val.given{color:var(--text-main);font-weight:800}.mini-notes-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:100%;height:100%;padding:1px}.mini-note{font-size:7.5px;font-weight:500;color:var(--text-muted);display:flex;align-items:center;justify-content:center;line-height:1}.mini-cell.highlight-primary{background-color:rgba(248,168,29,.32)!important;outline:2px solid var(--accent-amber);outline-offset:-2px;z-index:2}.mini-cell.highlight-secondary{background-color:rgba(56,189,248,.22)!important;outline:#38bdf8 solid 2px;outline-offset:-2px;z-index:2}.mini-cell.highlight-elim{background-color:rgba(239,68,68,.22)!important;outline:#ef4444 solid 2px;outline-offset:-2px;z-index:2}.mini-cell.highlight-placed{background-color:rgba(248,168,29,.45)!important;outline:#f8a81d solid 2px;outline-offset:-2px;z-index:2}.mini-note.note-elim{color:#ef4444!important;font-weight:800!important;text-decoration:line-through!important;background-color:rgba(239,68,68,.35)!important;border-radius:2px}.mini-note.note-placed{color:#f8a81d!important;font-weight:800!important;background-color:rgba(248,168,29,.45)!important;border-radius:2px;animation:1.5s infinite pulse-gold}.mini-board-controls{display:flex;justify-content:space-between;width:290px}.mini-board-controls .btn{padding:6px 12px;font-size:12px}.theory-footer{border-top:1px solid var(--border-color);padding-top:14px;margin-top:auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.theory-footer-left{display:flex;align-items:center;gap:8px}.theory-footer-left .select-label{font-size:13px;color:var(--text-muted)}.btn-start-practice{font-size:14px!important;padding:10px 22px!important;font-weight:700!important;border-radius:8px!important;display:inline-flex;align-items:center;gap:8px;box-shadow:0 4px 15px rgba(248,168,29,.35)}.btn-start-practice:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(248,168,29,.45)}.tech-card-btn-group{display:flex;gap:6px}.practice-p-count{font-size:11.5px;color:var(--text-muted);font-weight:500}@keyframes variation-pulse{0%{transform:scale(.985);filter:brightness(1.15)}50%{transform:scale(1.006);filter:brightness(1.05)}100%{transform:scale(1);filter:brightness(1)}}.board-container.variation-flash{animation:.35s cubic-bezier(.2,.9,.3,1) variation-pulse}.game-menu-container{position:relative;display:inline-flex;align-items:center}.btn-game-menu{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;flex-shrink:0;background:var(--bg-tertiary);border:1px solid var(--border-color);color:var(--text-main);padding:6px 14px;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer;transition:.2s cubic-bezier(.16, 1, .3, 1);box-shadow:0 1px 3px rgba(0,0,0,.1);-webkit-tap-highlight-color:transparent;touch-action:manipulation}.btn-game-menu:hover{background:var(--btn-hover-bg);border-color:var(--accent-amber);color:var(--accent-amber);transform:translateY(-1px)}.menu-chevron{transition:transform .2s}.game-menu-container.active .menu-chevron,.game-menu-container:has(.game-menu-dropdown.active) .menu-chevron,.game-menu-dropdown.active+.btn-game-menu .menu-chevron{transform:rotate(180deg)}.game-menu-dropdown{position:absolute;top:calc(100% + 8px);left:0;width:520px;max-width:min(92vw,560px);background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:14px;padding:12px;box-shadow:0 16px 40px rgba(0,0,0,.35),0 0 0 1px rgba(248,168,29,.15);display:none;flex-direction:column;gap:10px;z-index:999999;animation:.18s cubic-bezier(.16,1,.3,1) dropdown-in;max-height:min(85vh,580px);overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box}.game-menu-dropdown.active{display:flex!important}@keyframes dropdown-in{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.dropdown-header-bar{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 6px;border-bottom:1px solid var(--border-color)}.dropdown-header-title{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted)}.dropdown-game-count-badge{font-size:11px;font-weight:700;color:var(--accent-amber);background:rgba(248,168,29,.12);padding:2px 8px;border-radius:10px}.dropdown-search-bar{display:flex;align-items:center;gap:8px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;padding:6px 10px;margin-top:2px;margin-bottom:2px;transition:border-color .15s,box-shadow .15s}.dropdown-search-bar:focus-within{border-color:var(--accent-amber);box-shadow:0 0 0 2px rgba(248,168,29,.18)}.dropdown-search-icon{color:var(--text-muted);flex-shrink:0}.game-search-input{flex:1;background:0 0;border:none;outline:0;color:var(--text-main);font-size:.88rem;padding:0;font-family:inherit}.game-search-input::placeholder{color:var(--text-muted);opacity:.65}.btn-clear-search{background:0 0;border:none;color:var(--text-muted);font-size:1.15rem;line-height:1;cursor:pointer;padding:0 2px;display:flex;align-items:center;justify-content:center;transition:color .12s}.btn-clear-search:hover{color:var(--text-main)}.game-search-empty{grid-column:1/-1;text-align:center;padding:24px 16px;color:var(--text-muted);font-size:.9rem;font-weight:500}.game-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}.game-nav-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;cursor:pointer;background:var(--bg-tertiary);border:1px solid var(--border-color);transition:.15s;text-decoration:none;color:var(--text-main);box-sizing:border-box}.game-nav-item:hover{background:var(--btn-hover-bg);border-color:var(--accent-amber);transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.12)}.game-nav-item.active{background:rgba(248,168,29,.1);border-color:var(--accent-amber)}.game-nav-icon{width:36px;height:36px;border-radius:8px;background:var(--bg-primary);border:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;color:var(--accent-amber);flex-shrink:0}.game-nav-info{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.game-nav-title{font-size:13.5px;font-weight:700;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-nav-desc{font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-nav-badge{font-size:10px;font-weight:700;padding:2px 6px;border-radius:10px;background:rgba(248,168,29,.15);color:var(--accent-amber);border:1px solid rgba(248,168,29,.25);white-space:nowrap;flex-shrink:0;max-width:46%;overflow:hidden;text-overflow:ellipsis}@media (max-width:540px){.app-header>.logo-area{justify-content:space-between!important}.game-menu-container{position:relative!important}.game-menu-dropdown{position:fixed!important;top:56px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(440px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 72px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:10px!important;box-sizing:border-box!important;border-radius:14px!important;z-index:999999!important;box-shadow:0 16px 48px rgba(0,0,0,.6),0 0 0 100vmax rgba(0,0,0,.5)!important}.game-menu-dropdown.active{display:flex!important;transform:translateX(-50%)!important}.game-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.game-nav-item{min-width:0!important;padding:8px!important;gap:7px!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.game-nav-icon{width:30px;height:30px}.game-nav-icon svg{width:17px;height:17px}.game-nav-title{font-size:12px}.game-nav-badge,.game-nav-desc{display:none}}@media (max-width:360px){.game-menu-grid{grid-template-columns:1fr}}.game-controls-container{display:flex;align-items:center;gap:10px}.sokoban-game-layout{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:900px;margin:0 auto;padding:14px 16px 16px}.game-board-wrapper,.sokoban-board-wrapper{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;width:min(94vw,712px);background:var(--bg-secondary);border:3px solid var(--border-thick);border-radius:12px;padding:14px 12px;box-shadow:0 10px 25px -5px rgba(0,0,0,.4);touch-action:none;box-sizing:border-box}.sokoban-canvas-container{display:flex;justify-content:center;align-items:center;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:4px;-webkit-overflow-scrolling:touch}.sokoban-canvas{display:block;cursor:pointer;max-width:100%;flex-shrink:0;box-shadow:0 4px 16px rgba(0,0,0,.25)}#board-container:focus,#board-container:focus-visible,#caro-board:focus,#caro-board:focus-visible,#caro-canvas:focus,#caro-canvas:focus-visible,#mastermind-board:focus,#mastermind-board:focus-visible,#mastermind-rows:focus,#mastermind-rows:focus-visible,#matchsticks-board:focus,#matchsticks-board:focus-visible,#matchsticks-equation:focus,#matchsticks-equation:focus-visible,#maze-board-wrapper:focus,#maze-board-wrapper:focus-visible,#maze-canvas:focus,#maze-canvas:focus-visible,#minesweeper-board-wrapper:focus,#minesweeper-board-wrapper:focus-visible,#minesweeper-board:focus,#minesweeper-board:focus-visible,#nim-board:focus,#nim-board:focus-visible,#pentomino-board-wrapper:focus,#pentomino-board-wrapper:focus-visible,#pentomino-canvas:focus,#pentomino-canvas:focus-visible,#pentomino-tray:focus,#pentomino-tray:focus-visible,#pipes-board-wrapper:focus,#pipes-board-wrapper:focus-visible,#pipes-board:focus,#pipes-board:focus-visible,#pipes-canvas:focus,#pipes-canvas:focus-visible,#river-board:focus,#river-board:focus-visible,#river-stage:focus,#river-stage:focus-visible,#sokoban-board-wrapper:focus,#sokoban-board-wrapper:focus-visible,#sokoban-canvas:focus,#sokoban-canvas:focus-visible,#svg-overlay:focus,#svg-overlay:focus-visible,#tangram-board-wrapper:focus,#tangram-board-wrapper:focus-visible,#tangram-board:focus,#tangram-board:focus-visible,#tangram-scene:focus,#tangram-scene:focus-visible,#tangram-svg:focus,#tangram-svg:focus-visible,#waterjug-board:focus,#waterjug-board:focus-visible,#waterjug-jugs-list:focus,#waterjug-jugs-list:focus-visible,.board-grid-wrapper:focus,.board-grid-wrapper:focus-visible,.caro-board-wrapper:focus,.caro-board-wrapper:focus-visible,.caro-canvas-container:focus,.caro-canvas-container:focus-visible,.caro-canvas:focus,.caro-canvas:focus-visible,.caro-game-layout:focus,.caro-game-layout:focus-visible,.game-board-wrapper:focus,.game-board-wrapper:focus-visible,.game-view:focus,.game-view:focus-visible,.mastermind-board-wrapper:focus,.mastermind-board-wrapper:focus-visible,.mastermind-game-layout:focus,.mastermind-game-layout:focus-visible,.mastermind-rows-container:focus,.mastermind-rows-container:focus-visible,.matchsticks-board-wrapper:focus,.matchsticks-board-wrapper:focus-visible,.matchsticks-equation-container:focus,.matchsticks-equation-container:focus-visible,.matchsticks-game-layout:focus,.matchsticks-game-layout:focus-visible,.maze-board-wrapper:focus,.maze-board-wrapper:focus-visible,.maze-canvas-container:focus,.maze-canvas-container:focus-visible,.maze-canvas:focus,.maze-canvas:focus-visible,.maze-game-layout:focus,.maze-game-layout:focus-visible,.minesweeper-board-wrapper:focus,.minesweeper-board-wrapper:focus-visible,.minesweeper-board:focus,.minesweeper-board:focus-visible,.minesweeper-game-layout:focus,.minesweeper-game-layout:focus-visible,.minesweeper-scroll-container:focus,.minesweeper-scroll-container:focus-visible,.ms-cell:focus,.ms-cell:focus-visible,.nim-board-container:focus,.nim-board-container:focus-visible,.nim-game-layout:focus,.nim-game-layout:focus-visible,.nim-pebble:focus,.nim-pebble:focus-visible,.pentomino-board-wrapper:focus,.pentomino-board-wrapper:focus-visible,.pentomino-canvas-container:focus,.pentomino-canvas-container:focus-visible,.pentomino-canvas:focus,.pentomino-canvas:focus-visible,.pentomino-game-layout:focus,.pentomino-game-layout:focus-visible,.pentomino-tray-container:focus,.pentomino-tray-container:focus-visible,.pipes-board-wrapper:focus,.pipes-board-wrapper:focus-visible,.pipes-canvas-container:focus,.pipes-canvas-container:focus-visible,.pipes-canvas:focus,.pipes-canvas:focus-visible,.pipes-game-layout:focus,.pipes-game-layout:focus-visible,.river-board-wrapper:focus,.river-board-wrapper:focus-visible,.river-game-layout:focus,.river-game-layout:focus-visible,.river-stage-container:focus,.river-stage-container:focus-visible,.sokoban-board-wrapper:focus,.sokoban-board-wrapper:focus-visible,.sokoban-canvas-container:focus,.sokoban-canvas-container:focus-visible,.sokoban-canvas:focus,.sokoban-canvas:focus-visible,.sokoban-game-layout:focus,.sokoban-game-layout:focus-visible,.sudoku-cell:focus,.sudoku-cell:focus-visible,.sudoku-grid:focus,.sudoku-grid:focus-visible,.tangram-board-wrapper:focus,.tangram-board-wrapper:focus-visible,.tangram-game-layout:focus,.tangram-game-layout:focus-visible,.tangram-piece:focus,.tangram-piece:focus-visible,.tangram-svg-board:focus,.tangram-svg-board:focus-visible,.waterjug-board-wrapper:focus,.waterjug-board-wrapper:focus-visible,.waterjug-game-layout:focus,.waterjug-game-layout:focus-visible,.waterjug-jugs-container:focus,.waterjug-jugs-container:focus-visible,[data-piece]:focus,[data-piece]:focus-visible,[id$="-board"]:focus,[id$="-board"]:focus-visible,[id$="-board-wrapper"]:focus,[id$="-board-wrapper"]:focus-visible,[id$="-canvas"]:focus,[id$="-canvas"]:focus-visible,[id^=game-view-]:focus,[id^=game-view-]:focus-visible,canvas:focus,canvas:focus-visible,svg:focus,svg:focus-visible{outline:0!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important}.sokoban-controls-area{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}.sokoban-action-bar{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;width:100%}.sokoban-dpad{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important}.dpad-btn{background:var(--bg-tertiary);border:1px solid var(--border-color);color:var(--text-main);font-size:18px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation;box-shadow:0 2px 4px rgba(0,0,0,.12);user-select:none;flex-shrink:0}.dpad-btn:hover{background:var(--btn-hover-bg);border-color:var(--accent-amber);color:var(--accent-amber)}.dpad-btn:active{background:var(--accent-amber)}.dpad-separator{width:1px;height:24px;background:var(--border-color);margin:0 2px;flex-shrink:0}.dpad-action-btn{width:auto;min-width:48px;height:44px;padding:0 12px;gap:6px;font-size:13px;font-weight:600;color:var(--text-secondary)}.dpad-action-btn svg{flex-shrink:0}.dpad-action-btn:hover{color:var(--accent-amber)}@media (max-width:520px){.sokoban-dpad{gap:6px!important}.dpad-btn{width:42px;height:42px;font-size:16px}.dpad-action-btn{min-width:42px;padding:0 10px;font-size:12px;gap:4px}.dpad-separator{margin:0 1px}}@media (max-width:400px){.sokoban-dpad{gap:4px!important}.dpad-btn{width:38px;height:40px;font-size:15px}.dpad-action-btn{width:38px;min-width:38px;padding:0}.dpad-action-btn .dpad-text{display:none}}.game-shared-bottom-bar{display:flex;justify-content:center;align-items:center;gap:12px;width:fit-content;max-width:min(94vw,680px);margin:10px auto 0}.bottom-bar-btn{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 16px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-main);font-size:13.5px;font-weight:600;cursor:pointer;touch-action:manipulation;user-select:none;box-shadow:0 2px 6px rgba(0,0,0,.06);transition:.15s}.bottom-bar-btn:hover{background:var(--btn-hover-bg);border-color:var(--accent-amber);color:var(--accent-amber);transform:translateY(-1px)}.bottom-bar-btn:active{transform:translateY(0)}.sokoban-win-overlay,.tangram-win-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;border-radius:8px;z-index:50;animation:.25s win-fade-in}@keyframes win-fade-in{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.sokoban-win-card,.tangram-win-card{background:var(--bg-secondary);border:2px solid var(--accent-amber);border-radius:14px;padding:24px;text-align:center;max-width:90%;width:360px;box-shadow:0 20px 40px rgba(0,0,0,.5)}.win-icon{font-size:40px;margin-bottom:8px}.sokoban-win-card h3,.tangram-win-card h3{font-size:18px;font-weight:700;color:var(--text-main);margin-bottom:8px}.sokoban-win-card p,.tangram-win-card p{font-size:13.5px;color:var(--text-muted);margin-bottom:18px;line-height:1.5}.win-actions{display:flex;gap:10px;justify-content:center}.win-actions .btn{flex:1}.tangram-game-layout{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:900px;margin:0 auto;padding:10px 14px 16px}.tangram-level-header{display:flex;align-items:center;justify-content:center;width:min(92vw,642px);padding:4px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.tangram-title{display:block;font-size:15px;font-weight:700;color:var(--text-main);letter-spacing:-.01em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}@media (max-width:640px){.tangram-title{font-size:13.5px}}.tangram-board-wrapper{position:relative;display:flex;justify-content:center;align-items:center;width:min(92vw,642px);background:var(--bg-secondary);border:3px solid var(--border-thick);border-radius:12px;padding:8px;box-shadow:0 10px 25px -5px rgba(0,0,0,.4);touch-action:none;box-sizing:border-box}.tangram-canvas{display:block;border-radius:6px;cursor:grab;touch-action:none}.tangram-canvas:active{cursor:grabbing}.tangram-guide-bar{width:min(92vw,642px);background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:8px 12px;font-size:12.5px;color:var(--text-muted);line-height:1.5;text-align:center}.tangram-svg-board{display:block;width:100%;max-width:620px;height:auto;max-height:72vh;border-radius:8px;user-select:none;touch-action:none}.tangram-bg{fill:var(--bg-secondary)}.tangram-divider{display:none}.tangram-silhouette{fill:rgba(248,168,29,0.12);stroke:var(--accent-amber);stroke-width:2.2;transition:.2s}.tangram-seam-guide{fill:none;stroke:rgba(248,168,29,0.65);stroke-width:1.5;stroke-dasharray:4 4}.tangram-piece{cursor:grab;touch-action:none;outline:0}.tangram-piece:active{cursor:grabbing}.tangram-piece polygon{stroke:rgba(0,0,0,0.25);stroke-width:1.5;stroke-linejoin:round;transition:filter .15s,stroke .15s}.tangram-piece:hover polygon{filter:brightness(1.1);stroke:#ffffff}.tangram-piece.selected polygon{filter:brightness(1.15) drop-shadow(0 4px 12px rgba(248, 168, 29, .65));stroke:#ffffff;stroke-width:2.5}.header-level-controls{align-items:center!important;gap:6px!important}.game-controls-container[style*="display: none"]{display:none!important}.app-header .btn.btn-icon,.app-header .header-nav-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;padding:0!important;border-radius:8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;box-sizing:border-box!important;transition:.15s!important}.app-header .btn.btn-icon svg,.app-header .header-nav-btn svg{width:17px!important;height:17px!important;display:block!important;pointer-events:none!important}.app-header .btn.btn-icon:hover,.app-header .header-nav-btn:hover{transform:translateY(-1px)!important;box-shadow:0 2px 8px rgba(0,0,0,.15)!important}.header-level-select,.select-input{height:34px!important;min-height:34px!important;background:var(--bg-tertiary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;border-radius:8px!important;font-size:13.5px!important;font-weight:600!important;padding:0 24px 0 12px!important;cursor:pointer!important;outline:0!important;appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8938b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 8px center!important;transition:.2s cubic-bezier(.16, 1, .3, 1)!important;box-shadow:0 1px 3px rgba(0,0,0,.08)!important;box-sizing:border-box!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.header-level-select:hover,.select-input:hover{background-color:var(--btn-hover-bg)!important;border-color:var(--accent-amber)!important;color:var(--accent-amber)!important;transform:translateY(-1px)!important}.header-level-select:focus,.select-input:focus{border-color:var(--accent-amber)!important;box-shadow:0 0 0 2px rgba(248,168,29,.25)!important}#tangram-category-select{width:140px!important;min-width:115px!important;max-width:155px!important;padding:0 22px 0 10px!important;text-align:left!important;text-align-last:left!important}#tangram-jump{width:210px!important;min-width:150px!important;max-width:260px!important;padding:0 24px 0 10px!important;text-align:left!important;text-align-last:left!important}#sokoban-jump{width:220px!important;min-width:190px!important;max-width:250px!important;padding:0 26px 0 11px!important;text-align:left!important;text-align-last:left!important}#maze-jump{width:auto!important;min-width:110px!important;max-width:140px!important;padding:0 22px 0 10px!important;text-align:left!important}#nim-preset-select{width:auto!important;min-width:135px!important;max-width:175px!important;padding:0 22px 0 10px!important;text-align:left!important}#minesweeper-diff-select{width:auto!important;min-width:135px!important;max-width:170px!important;padding:0 22px 0 10px!important;text-align:left!important}#difficulty-select{width:auto!important;min-width:130px!important;max-width:155px!important;padding:0 22px 0 10px!important;text-align:left!important}.header-level-select option,.select-input option{background:var(--bg-secondary)!important;color:var(--text-main)!important;padding:6px!important;font-weight:500!important}.header-level-select optgroup,.select-input optgroup{background:var(--bg-secondary)!important;color:var(--accent-amber)!important;font-weight:700!important}#btn-sound-toggle.muted svg{color:var(--text-muted)}.caro-top-bar,.game-shared-top-bar,.mastermind-top-bar,.matchsticks-top-bar,.maze-top-bar,.minesweeper-top-bar,.nim-top-bar,.pentomino-top-bar,.pipes-top-bar,.river-top-bar,.sokoban-top-bar,.tangram-top-bar,.waterjug-top-bar{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;width:fit-content!important;max-width:min(94vw,680px)!important;margin:0 auto!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;border-radius:8px!important;padding:3px 8px!important;min-height:38px!important;box-shadow:0 2px 8px rgba(0,0,0,.06)!important}.topbar-group{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center}.topbar-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;background:var(--bg-tertiary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;touch-action:manipulation!important;user-select:none!important;flex-shrink:0!important}.topbar-btn:hover:not(:disabled){background:var(--btn-hover-bg)!important;border-color:var(--accent-amber)!important;color:var(--accent-amber)!important;transform:translateY(-1px)!important;box-shadow:0 2px 8px rgba(0,0,0,.15)!important}.topbar-btn:active:not(:disabled){transform:scale(.94)!important}.topbar-btn:disabled{opacity:.35!important;cursor:not-allowed!important;pointer-events:none!important}.topbar-btn.active,.topbar-btn.is-active,.topbar-btn[aria-pressed=true]{background:var(--btn-active-bg)!important;border-color:var(--btn-active-border)!important;color:var(--btn-active-text)!important;box-shadow:var(--btn-active-shadow)!important}.topbar-btn:is(.active,.is-active,[aria-pressed=true]) svg{color:var(--btn-active-text)!important;stroke:var(--btn-active-text)!important}.shortest-route-layout{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;color:var(--text-main)}.shortest-route-top-bar{flex-wrap:nowrap!important;width:fit-content!important;max-width:min(96vw,780px)!important;gap:3px!important}.shortest-route-top-bar .topbar-group{flex-wrap:nowrap;gap:3px}.shortest-route-top-bar .topbar-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}#header-controls-shortest{gap:6px}#header-controls-shortest #shortest-level{min-width:150px;max-width:min(240px,48vw)}#header-controls-shortest .header-nav-btn{flex:0 0 34px;width:34px;height:34px}.shortest-route-stats{display:flex;justify-content:center;align-items:stretch;gap:8px;width:min(100% - 20px,620px)}.shortest-route-stats .topbar-stat{min-width:120px;display:grid;grid-template-columns:20px auto;grid-template-rows:auto auto;justify-content:center;align-items:center;column-gap:6px;padding:7px 12px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-secondary)}.shortest-route-stats .topbar-stat>svg{grid-row:1/3;color:var(--accent-amber)}.shortest-route-stats .mobile-stat-label{font-size:9px;font-weight:800;letter-spacing:.08em;color:var(--text-muted)}.shortest-route-stats strong{font-variant-numeric:tabular-nums;font-size:15px;line-height:1.15}.shortest-mode-stat strong{font-size:13px}.shortest-route-heading{width:min(100% - 24px,680px);text-align:center}.shortest-route-heading h2{margin:0;font-size:clamp(16px, 2vw, 21px)}.shortest-route-heading p{margin:3px 0 0;color:var(--text-muted);font-size:13px}.shortest-route-board{position:relative;width:min(94vw,760px);aspect-ratio:17/10;overflow:hidden;border:1px solid var(--border-color);border-radius:14px;background:var(--bg-secondary);box-shadow:0 6px 20px rgba(0,0,0,.08)}.shortest-route-board>svg{display:block;width:100%;height:100%;overflow:visible}.shortest-edge line{stroke:var(--text-muted);stroke-width:3;opacity:.48}.shortest-edge text{fill:var(--text-main);stroke:var(--bg-secondary);stroke-width:5px;paint-order:stroke;text-anchor:middle;dominant-baseline:central;font-size:15px;font-weight:800}.shortest-edge.is-used line{stroke:var(--accent-amber);stroke-width:6;opacity:1}.shortest-edge.is-answer:not(.is-used) line{stroke:var(--accent-amber);stroke-width:5;stroke-dasharray:8 6;opacity:.85}.shortest-edge.is-blocked line{stroke:#c84c3a;stroke-dasharray:8 7;opacity:.8}.shortest-edge.is-blocked text{fill:#c84c3a}.shortest-node circle{fill:var(--bg-tertiary);stroke:var(--border-color);stroke-width:3}.shortest-node text{fill:var(--text-main);text-anchor:middle;dominant-baseline:central;font-size:17px;font-weight:800}.shortest-node.is-start circle{stroke:var(--accent-amber);stroke-width:4}.shortest-node.is-current circle{fill:var(--accent-amber);stroke:var(--accent-amber)}.shortest-node.is-current text{fill:var(--bg-primary)}.shortest-node.is-goal circle{stroke:#4d9c70;stroke-width:4}.shortest-node.is-via circle{stroke:#c78336;stroke-width:4;stroke-dasharray:3 2}.shortest-node.is-visited circle{fill:color-mix(in srgb,var(--accent-amber) 24%,var(--bg-secondary))}.shortest-node-buttons{position:absolute;inset:0}.shortest-node-buttons button{position:absolute;width:46px;height:46px;transform:translate(-50%,-50%);border:0;border-radius:50%;background:0 0;color:transparent;cursor:pointer;touch-action:manipulation}.shortest-node-buttons button:disabled{cursor:default}.shortest-node-buttons button.is-hint-target{outline:3px solid var(--accent-amber);background:color-mix(in srgb,var(--accent-amber) 22%,transparent);animation:1s ease-in-out infinite alternate shortest-hint-pulse}@keyframes shortest-hint-pulse{to{transform:translate(-50%,-50%) scale(1.12)}}.shortest-route-readout{display:flex;flex-direction:column;gap:4px;align-items:center;width:min(94vw,700px);text-align:center}.shortest-route-readout #shortest-route{color:var(--text-main);font-weight:750;letter-spacing:.02em}.shortest-route-readout #shortest-status{min-height:1.25em;color:var(--text-muted);font-size:13px}.shortest-hint-card{display:none;z-index:120}@media (max-width:640px){.shortest-route-layout{gap:8px}.shortest-route-top-bar{max-width:calc(100vw - 12px)!important;padding:3px 4px!important}.shortest-route-top-bar .topbar-group{gap:1px}.shortest-route-top-bar .topbar-btn{width:30px!important;min-width:30px!important;height:32px!important;min-height:32px!important;border-radius:7px!important}.shortest-route-top-bar .topbar-btn svg{width:16px;height:16px}.shortest-route-stats{width:calc(100% - 24px);gap:6px}.shortest-route-stats .topbar-stat{min-width:0;flex:1;padding:6px 4px;column-gap:4px}.shortest-route-stats .topbar-stat>svg{width:16px;height:16px}.shortest-route-stats strong{font-size:13px}.shortest-route-stats .mobile-stat-label{font-size:8px}.shortest-route-board{width:calc(100vw - 20px);border-radius:11px}.shortest-node-buttons button{width:40px;height:40px}.shortest-route-heading h2{font-size:16px}.shortest-route-heading p{font-size:12px}.app-header.header-expanded #header-controls-shortest:not([style*="display: none"]):not([style*="display:none"]){display:flex!important;width:min(100%,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;flex:1 1 100%!important;justify-content:center!important}#header-controls-shortest #shortest-level{width:min(100%,320px)!important;max-width:100%!important;min-height:40px}}html.force-mobile-layout .app-header.header-expanded #header-controls-shortest:not([style*="display: none"]):not([style*="display:none"]){display:flex!important;width:min(100%,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;flex:1 1 100%!important;justify-content:center!important}.topbar-btn.pipes-mode-btn-old{width:auto!important;min-width:36px!important;height:36px!important;padding:0 10px!important;gap:6px!important;font-size:13px!important;font-weight:500!important}.pipes-mode-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.pipes-mode-icon svg{width:22px;height:22px;display:block}.pipes-mode-btn .btn-text{white-space:nowrap}@media (max-width:480px){.topbar-btn.pipes-mode-btn-old{padding:0 7px!important;gap:4px!important}.pipes-mode-btn .btn-text{font-size:11.5px!important}}.topbar-stars{display:inline-flex;align-items:center;gap:2px;padding:0 6px;height:36px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;user-select:none}.topbar-stars .star-icon{width:17px;height:17px;display:block}.topbar-stars-btn{background:0 0;border:none;margin:0;display:inline-flex;align-items:center;justify-content:center}.star-click-btn:hover{transform:scale(1.22);filter:brightness(1.2)}.star-click-btn:focus-visible{outline:2px solid var(--accent-amber);outline-offset:1px}.star-icon.filled{fill:#f8a81d;stroke:#d97706;stroke-width:.5;filter:drop-shadow(0 0 3px rgba(248, 168, 29, .5))}.star-icon.empty{fill:rgba(0,0,0,0.12);stroke:var(--border-thick);stroke-width:1.5;opacity:.35}.topbar-timer{display:none!important}.topbar-stat{display:inline-flex;align-items:center;gap:5px;background:var(--bg-tertiary);border:1px solid var(--border-color);color:var(--text-main)}.topbar-stat svg{color:var(--accent-amber)}.topbar-stat .stat-num{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:var(--text-main)}.confetti-canvas{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:105;overflow:hidden}.game-result-overlay{position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;z-index:100!important;backdrop-filter:blur(6px)!important;background-color:rgba(0,0,0,.75)!important;overflow:hidden!important}.game-result-card{position:relative;background:var(--bg-secondary)!important;border:2px solid var(--accent-amber)!important;border-radius:16px!important;padding:20px!important;text-align:center!important;width:min(420px,calc(100vw - 28px))!important;max-height:min(90dvh,620px)!important;box-sizing:border-box!important;overflow-x:hidden!important;overflow-y:hidden!important;box-shadow:0 25px 50px -12px rgba(0,0,0,.65),0 0 20px rgba(248,168,29,.25)!important;animation:.28s cubic-bezier(.16,1,.3,1) result-card-pop!important;z-index:110!important}.game-result-card *{box-sizing:border-box}@keyframes result-card-pop{from{opacity:0;transform:scale(.9) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}.result-header-badge{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.result-game-tag{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:3px 8px;border-radius:5px;background:rgba(248,168,29,.16);color:var(--accent-amber)}.result-close-x{background:0 0;border:none;font-size:24px;line-height:1;color:var(--text-muted);cursor:pointer;padding:2px 6px;border-radius:4px;transition:color .15s}.result-close-x:hover{color:var(--text-main)}.result-hero-icon{display:flex;align-items:center;justify-content:center;width:58px;height:54px;margin:2px auto 6px;color:var(--accent-amber)}.result-hero-icon svg{display:block;width:50px;height:50px;filter:drop-shadow(0 3px 5px color-mix(in srgb, currentColor 24%, transparent))}.result-hero-icon.lose-anim{color:var(--accent-red)}.result-hero-icon.win-anim{animation:1.6s ease-in-out infinite hero-triumph}@keyframes hero-triumph{0%,100%{transform:scale(1) rotate(0)}25%{transform:scale(1.14) rotate(-6deg)}75%{transform:scale(1.14) rotate(6deg)}}.result-title-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 10px;margin-bottom:4px}.result-title{font-size:21px;font-weight:800;margin:0}.result-title.title-win{color:var(--accent-amber)}.result-title.title-lose{color:var(--accent-red)}.result-subtitle{font-size:13px;color:var(--text-muted);line-height:1.35;margin:0 0 10px}.result-description{margin:-2px 0 10px;color:var(--text-main);font-size:13px;line-height:1.4}.result-stars-box{display:inline-flex;align-items:center;justify-content:center;gap:2px;padding:3px 7px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:999px;margin:0}.result-stars-box .star-icon{width:15px;height:15px}.result-stats-grid{display:grid;gap:7px;width:100%;margin:0 0 12px}.result-stats-1{grid-template-columns:minmax(0,190px);justify-content:center}.result-stats-2{grid-template-columns:repeat(2,minmax(0,1fr))}.result-stats-3{grid-template-columns:repeat(3,minmax(0,1fr))}.result-stat-chip{background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:9px;padding:7px 8px;display:flex;align-items:center;gap:7px;text-align:left;min-width:0}.stat-chip-icon svg{width:18px;height:18px;color:var(--accent-amber);flex-shrink:0}.stat-chip-text{display:flex;flex-direction:column;min-width:0;overflow:hidden}.stat-chip-label{font-size:10px;color:var(--text-muted);text-transform:uppercase;white-space:nowrap}.stat-chip-val{font-size:13px;font-weight:700;color:var(--text-main);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-actions-row{display:flex;gap:8px;justify-content:center;width:100%}.btn-result-primary,.btn-result-secondary{box-sizing:border-box!important;min-width:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important}.btn-result-primary{flex:1.3!important;padding:10px 14px!important;font-size:14.5px!important;font-weight:700!important;box-shadow:0 4px 14px rgba(248,168,29,.4)!important}.btn-result-primary:focus{outline:#ffffff solid 3px!important;outline-offset:2px!important}.btn-result-secondary{flex:1!important;padding:10px 12px!important;font-size:14px!important}@media (max-width:440px){.result-stats-3{grid-template-columns:repeat(2,minmax(0,1fr))}.result-stats-3 .result-stat-chip:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:min(100%,190px)}}@media (max-width:600px){.game-result-card{padding:16px!important}.header-level-select{max-width:140px!important;font-size:12.5px!important}#tangram-category-select{width:105px!important;min-width:85px!important;max-width:118px!important;font-size:11.5px!important;padding:0 18px 0 6px!important}#tangram-jump{width:135px!important;min-width:105px!important;max-width:155px!important;font-size:11.5px!important;padding:0 18px 0 6px!important}.game-shared-top-bar,.maze-top-bar,.minesweeper-top-bar,.nim-top-bar,.sokoban-top-bar,.tangram-top-bar{padding:4px 8px!important;gap:5px!important}.topbar-btn{min-width:34px!important;min-height:34px!important;width:34px!important;height:34px!important}.topbar-stars,.topbar-stat{height:34px;padding:0 6px}.game-board-wrapper,.maze-board-wrapper,.minesweeper-board-wrapper,.sokoban-board-wrapper,.tangram-board-wrapper{width:100vw!important;max-width:100vw!important;border:none!important;border-radius:0!important;box-shadow:none!important;padding:4px 0!important;margin:0!important;background:0 0!important}.maze-game-layout,.minesweeper-game-layout,.nim-game-layout,.sokoban-game-layout,.tangram-game-layout{width:100vw!important;max-width:100vw!important;padding:10px 4px 12px!important;margin:0!important;gap:8px!important}.sokoban-canvas-container{width:100vw!important;max-width:100vw!important;padding:0!important}.tangram-svg-board{width:100vw!important;max-width:100vw!important;height:auto!important}.tangram-guide-bar{width:calc(100vw - 16px)!important;margin:0 auto!important}.game-timer{height:34px!important;padding:0 8px!important;font-size:12.5px!important;border-radius:6px!important}}.nim-game-layout{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin:0 auto;padding:8px 16px 16px;max-width:1100px;gap:0}.nim-top-bar{margin:18px auto 14px!important}.nim-screen-container{gap:6px}.nim-screen-container .nim-board-container{background:0 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:6px 0!important}.nim-top-bar .topbar-btn{border-radius:50%!important}.nim-turn-badge{display:inline-flex;align-items:center;gap:8px;transition:.2s}.nim-turn-badge.player-turn{background:rgba(16,185,129,.15);color:#10b981;border:1px solid rgba(16,185,129,.3)}.nim-turn-badge.ai-turn{background:rgba(245,158,11,.15);color:#f59e0b;border:1px solid rgba(245,158,11,.3)}.nim-turn-badge.player2-turn{background:rgba(99,102,241,.15);color:#6366f1;border:1px solid rgba(99,102,241,.3)}.nim-turn-badge.game-over{background:rgba(100,116,139,.15);color:var(--text-muted);border:1px solid var(--border-color)}.nim-turn-dot{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block;animation:1.4s ease-in-out infinite pulseDot}@keyframes pulseDot{0%,100%{transform:scale(.9);opacity:.7}50%{transform:scale(1.3);opacity:1}}.nim-stat-item{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-muted);height:36px;padding:0 10px;background:var(--bg-tertiary);border-radius:8px}.nim-stat-item .stat-num{font-weight:800;color:var(--text-main)}.nim-board-container{width:100%;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:18px;box-shadow:0 4px 16px rgba(0,0,0,.15)}.nim-board-container:focus{outline:0!important}.nim-piles-list{display:flex;flex-direction:column;gap:12px;width:100%}.nim-pile-row{display:flex;flex-direction:column;gap:8px;padding:12px 14px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:10px;cursor:pointer;transition:.15s}.nim-pile-row:hover{border-color:var(--accent-amber)}.nim-pile-row.active-pile{border-color:var(--accent-blue);background:var(--cell-hover-bg)}.nim-pile-row.hinted-pile{border-color:var(--accent-amber);background:var(--cell-selected-bg)}.nim-pile-header{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600}.pile-index-badge{background:var(--bg-primary);padding:3px 8px;border-radius:6px;color:var(--text-muted);font-size:12px}.pile-count-text{color:var(--text-main);font-weight:700}.pile-hint-badge{color:var(--accent-amber);font-weight:700;font-size:12px}.nim-pebbles-wrapper{display:flex;flex-wrap:wrap;gap:10px;align-items:center;min-height:46px;padding:4px 0}.pile-empty-label{color:var(--text-muted);font-style:italic;font-size:13px}.nim-pebble{background:0 0!important;border:none!important;box-shadow:none!important;padding:0!important;width:44px!important;height:34px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;touch-action:manipulation!important;color:var(--accent-amber)!important;transition:transform .12s,color .12s!important;user-select:none!important}.nim-pebble .pebble-svg{width:44px!important;height:34px!important;display:block!important}.nim-pebble.hover-take,.nim-pebble:hover{transform:translateY(-2px) scale(1.08)!important;color:var(--text-main)!important}.nim-pebble.selected{transform:translateY(-3px) scale(1.1)!important;color:var(--text-main)!important}.nim-pebble.hinted{color:var(--accent-amber)!important;animation:1.2s infinite alternate pulsePebble!important}@keyframes pulsePebble{from{transform:scale(1)}to{transform:scale(1.12)}}[data-theme=dark] .nim-pebble{color:#38bdf8!important}[data-theme=dark] .nim-pebble.hover-take,[data-theme=dark] .nim-pebble:hover{color:#f59e0b!important}.nim-status-pill{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 10px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;font-size:12.5px;font-weight:600;color:var(--text-main);cursor:pointer;transition:.15s;user-select:none}.nim-status-pill:hover{background:var(--btn-hover-bg);border-color:var(--accent-amber);color:var(--accent-amber);transform:translateY(-1px)}.btn-primary-take:not(:disabled){background:var(--accent-amber)!important;color:#fff!important;font-weight:700!important}.maze-game-layout{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:min(94vw,680px);margin:0 auto;padding:14px 16px 16px}.maze-stat-badge{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:36px;background:var(--bg-tertiary);border-radius:8px;font-size:13px;font-weight:600;color:var(--text-muted)}.maze-stat-badge .stat-num{font-weight:800;color:var(--text-main)}.maze-board-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:12px;box-shadow:0 4px 16px rgba(0,0,0,.15)}.maze-board-wrapper:focus{outline:0!important}.maze-canvas-container{display:flex;justify-content:center;align-items:center;width:100%;max-width:100%;overflow:hidden;border-radius:8px;padding:4px}.maze-canvas{display:block;cursor:pointer;max-width:100%;box-shadow:0 4px 16px rgba(0,0,0,.25)}.maze-canvas:focus{outline:0!important}.minesweeper-game-layout{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:98vw;margin:0 auto;padding:8px 6px 12px;box-sizing:border-box}.minesweeper-top-bar{display:flex!important;justify-content:center!important;align-items:center!important;width:fit-content!important;max-width:min(94vw,680px)!important;margin:0 auto!important;gap:12px!important}.mines-counter-badge{display:inline-flex;align-items:center;font-family:'Courier New',Courier,monospace;color:#ef4444;background:#0f172a;border:1px solid #334155;letter-spacing:2px}.ms-cell-icon{display:block;pointer-events:none;width:calc(var(--ms-cell-size,32px) * .65)!important;height:calc(var(--ms-cell-size,32px) * .65)!important;max-width:90%!important;max-height:90%!important;margin:auto}.ms-cell.exploded .ms-cell-icon{animation:.3s cubic-bezier(.34,1.56,.64,1) explodePop}@keyframes explodePop{0%{transform:scale(.6)}60%{transform:scale(1.25)}100%{transform:scale(1)}}.mobile-mode-btn.active{background:var(--accent-amber)!important;color:#fff!important;border-color:var(--accent-amber)!important}.minesweeper-board-wrapper{display:flex;justify-content:center;align-items:center;width:fit-content;max-width:100%;margin:0 auto;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:8px 6px;box-shadow:0 4px 16px rgba(0,0,0,.15);overflow:hidden;box-sizing:border-box}.minesweeper-scroll-container{display:flex;justify-content:center;align-items:center;max-width:100%;overflow:hidden;padding:0;box-sizing:border-box}.minesweeper-board{display:grid!important;gap:var(--ms-gap,2px)!important;background:#334155;user-select:none!important;touch-action:manipulation;width:fit-content!important;max-width:100%!important;margin:0 auto!important;box-sizing:border-box!important}.minesweeper-board:focus{outline:0!important}.ms-cell{width:var(--ms-cell-size,32px)!important;height:var(--ms-cell-size,32px)!important;aspect-ratio:1/1!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:calc(var(--ms-cell-size, 32px) * .58)!important;border-radius:max(2px,calc(var(--ms-cell-size,32px) * .12))!important;user-select:none!important;touch-action:manipulation!important;box-sizing:border-box!important}.ms-cell.unrevealed{background:#cbd5e1;border-radius:4px}:root:not([data-theme]) .ms-cell.unrevealed,[data-theme=dark] .ms-cell.unrevealed{background:#334155;border:none;box-shadow:none}.ms-cell.unrevealed:hover{filter:brightness(1.08)}.ms-cell.unrevealed:active{filter:brightness(.95);border:none;box-shadow:none}.ms-cell.revealed{background:#e2e8f0;border-radius:4px}:root:not([data-theme]) .ms-cell.revealed,[data-theme=dark] .ms-cell.revealed{background:#1e293b;border:none;box-shadow:none}.ms-cell.cursor-active{outline:2px solid var(--accent-amber)!important;outline-offset:-2px;z-index:2}.ms-cell.exploded{background:#ef4444!important}.ms-cell.num-1{color:#2563eb}.ms-cell.num-2{color:#16a34a}.ms-cell.num-3{color:#dc2626}.ms-cell.num-4{color:#4f46e5}.ms-cell.num-5{color:#9a3412}.ms-cell.num-6{color:#0d9488}.ms-cell.num-7{color:#111827}.ms-cell.num-8{color:#64748b}[data-theme=dark] .ms-cell.num-1{color:#60a5fa}[data-theme=dark] .ms-cell.num-2{color:#4ade80}[data-theme=dark] .ms-cell.num-3{color:#f87171}[data-theme=dark] .ms-cell.num-4{color:#818cf8}[data-theme=dark] .ms-cell.num-5{color:#fb923c}[data-theme=dark] .ms-cell.num-6{color:#2dd4bf}[data-theme=dark] .ms-cell.num-7{color:#e2e8f0}[data-theme=dark] .ms-cell.num-8{color:#94a3b8}.caro-game-layout,.mastermind-game-layout,.matchsticks-game-layout,.pentomino-game-layout,.pipes-game-layout,.river-game-layout,.waterjug-game-layout{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:min(94vw,720px);margin:0 auto;padding:14px 16px 24px}.pipes-game-layout{gap:10px!important;padding:10px 16px 20px!important}.pipes-screen-container{padding:12px 16px!important;max-width:min(94vw,580px)!important}.pipes-board-wrapper{display:flex;flex-direction:column;align-items:center;gap:0;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:12px;box-shadow:none!important;width:100%;max-width:540px}#pipes-canvas-container,.pipes-canvas-container{display:flex!important;justify-content:center!important;align-items:center!important;width:fit-content!important;max-width:100%!important;margin:0 auto!important;border-radius:0!important;border:2.5px solid var(--border-thick)!important;box-shadow:none!important;box-sizing:content-box!important}[data-theme=dark] #pipes-canvas-container,[data-theme=dark] .pipes-canvas-container{border-color:#8c6d62!important}.pipes-canvas{display:block!important;border-radius:0!important;border:none!important;cursor:pointer;touch-action:none}.mastermind-board-wrapper{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:460px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:16px;box-shadow:0 4px 16px rgba(0,0,0,.12)}#mastermind-board #mastermind-hint-container{order:0;width:100%}#mastermind-board .mastermind-secret-area{order:1;width:100%}#mastermind-board .mastermind-rows-list{order:2;width:100%}#mastermind-board .mastermind-picker-area{order:3;width:100%}.mastermind-hint-banner{width:100%;background:rgba(245,158,11,.15);border:1px solid rgba(245,158,11,.35);color:#f59e0b;border-radius:8px;padding:8px 12px;font-size:13px;text-align:center}.mastermind-rows-list{display:flex;flex-direction:column;gap:8px;width:100%}.mastermind-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;min-height:52px;box-sizing:border-box;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px}.mastermind-row.active-row{border-color:var(--accent-primary);background:rgba(56,189,248,.08)}.mastermind-row.secret-code-row{position:relative;justify-content:center;background:var(--bg-tertiary);border-radius:12px;margin-bottom:8px;padding:8px 12px;transition:.25s}.mastermind-row.secret-code-row .secret-badge{position:absolute;left:12px;width:auto!important;min-width:48px;max-width:none!important;height:auto;display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:6px;font-size:11.5px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;text-align:center;box-sizing:border-box;white-space:nowrap;line-height:1.2}.mastermind-row.secret-code-row.locked{background:linear-gradient(135deg,rgba(43,23,19,.95) 0,rgba(23,18,16,.98) 100%);border:1.5px solid rgba(248,168,29,.45);box-shadow:0 4px 18px rgba(0,0,0,.45),inset 0 1px 0 rgba(248,168,29,.2)}.mastermind-row.secret-code-row.locked .secret-badge{background:rgba(248,168,29,.18);color:#fbbf24;border:1px solid rgba(248,168,29,.35)}.mastermind-row.secret-code-row.revealed .secret-badge{background:rgba(16,185,129,.18);color:#34d399;border:1px solid rgba(16,185,129,.4)}.mastermind-row.secret-code-row.locked .mm-peg.secret-peg{width:38px;height:38px;background:linear-gradient(145deg,#2b1f1a,#1a120f)!important;border:2px solid rgba(248,168,29,.45);box-shadow:0 3px 10px rgba(0,0,0,.5),inset 0 1px 2px rgba(248,168,29,.25);display:inline-flex;align-items:center;justify-content:center}.secret-lock-icon{width:20px;height:20px;color:#f8a81d;filter:drop-shadow(0 0 5px rgba(248, 168, 29, .45));display:block;flex-shrink:0;transition:.2s}.secret-code-row.revealed .secret-peg{width:38px;height:38px;border-style:solid;border-color:rgba(255,255,255,.25);box-shadow:inset 0 2px 4px rgba(255,255,255,.4),0 3px 6px rgba(0,0,0,.3)}.mm-peg.number-peg{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;background-color:var(--bg-card);color:var(--text-main);border:1.5px solid var(--border-color);box-shadow:0 1px 3px rgba(0,0,0,.15)}.mm-peg.number-peg.filled{background:var(--bg-tertiary);border-color:var(--accent-amber);color:var(--accent-amber)}.mm-palette-btn.number-palette-btn{width:38px;height:38px;border-radius:8px;background:var(--btn-bg);border:1.5px solid var(--border-color);color:var(--btn-text);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s}.mm-palette-btn.number-palette-btn:hover{border-color:var(--accent-amber);color:var(--accent-amber);background:var(--btn-hover-bg);transform:translateY(-2px)}.mm-palette-btn.number-palette-btn:active{transform:translateY(0)}.mm-hint-reason-box{background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;padding:8px 12px;display:flex;flex-direction:column;gap:6px}.mm-hint-reason-title{font-weight:700;font-size:12.5px;color:var(--accent-amber);display:flex;align-items:center;gap:5px}.mm-hint-reason-item{font-size:12.5px;line-height:1.45;color:var(--text-main)}.mm-hint-clues-list{display:flex;flex-direction:column;gap:4px;margin:4px 0}.mm-hint-clue-row{display:flex;align-items:flex-start;gap:6px;font-size:12px;line-height:1.4;color:var(--text-muted)}.mastermind-hint-num-tile{width:28px;height:28px;border-radius:6px;background:var(--bg-secondary);border:1.5px solid var(--border-color);display:inline-flex;align-items:center;justify-content:center;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:14px;font-weight:800;color:var(--text-main);box-shadow:0 1px 3px rgba(0,0,0,.15)}.topbar-btn.active-mode{background:var(--btn-active-bg)!important;color:var(--btn-active-text)!important;border-color:var(--btn-active-border)!important}.mode-text-badge{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-weight:800;font-size:12px;letter-spacing:-.5px}.mastermind-hint-card{max-width:440px}.mm-hint-content{display:flex;flex-direction:column;gap:10px;font-size:13.5px;line-height:1.55;color:var(--text-main)}.mm-hint-lead{margin:0;color:var(--text-main)}.mm-hint-tip{background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;padding:8px 12px}.mm-hint-tip-title{font-weight:700;color:var(--accent-amber);margin-bottom:3px;font-size:13px}.mm-hint-tip-desc{font-size:12.5px;color:var(--text-muted)}.mm-hint-stats{padding:6px 10px;background:var(--bg-tertiary);border-radius:6px;border-left:3px solid var(--accent-amber);font-size:13px}.mm-hint-item{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px}.mm-color-badge{display:inline-flex;align-items:center;gap:4px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:2px 8px;font-size:12px;font-weight:600}.mm-color-badge .mm-dot{width:10px;height:10px;border-radius:50%;border:1px solid rgba(0,0,0,.2);display:inline-block;flex-shrink:0}.mm-subtext{font-size:11.5px;color:var(--text-muted);font-style:italic}.mm-hint-section{display:flex;flex-direction:column;gap:6px;margin-top:2px}.mm-hint-label{font-weight:700;font-size:13px;color:var(--text-main)}.mm-hint-reason{font-size:12px;color:var(--text-muted);line-height:1.4}.mm-hint-solved-banner{background:rgba(16,185,129,.15);border:1px solid rgba(16,185,129,.4);color:#10b981;padding:6px 12px;border-radius:6px;font-weight:600;text-align:center}.mastermind-hint-pegs{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:8px 12px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px}.mastermind-hint-peg-item{display:flex;flex-direction:column;align-items:center;gap:4px}.mastermind-hint-peg-dot{width:26px;height:26px;border-radius:50%;box-shadow:inset 0 2px 4px rgba(255,255,255,.4),0 2px 5px rgba(0,0,0,.25);border:1.5px solid rgba(255,255,255,.3)}.mastermind-hint-peg-label{font-size:11px;font-weight:600;color:var(--text-muted)}.row-num-badge{font-size:12px;font-weight:700;color:var(--text-muted);width:38px;min-width:38px;max-width:38px;flex-shrink:0;text-align:left}.mastermind-row[data-slots="5"] .row-num-badge{width:44px;min-width:44px;max-width:44px}.row-pegs-group{display:flex;align-items:center;justify-content:center;gap:8px;flex:1}.mm-peg{width:32px;height:32px;border-radius:50%;border:2px solid rgba(255,255,255,.2);display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:transform .15s}.mm-peg.active-peg.empty{border:2px dashed var(--border-color);background:0 0}.mm-peg.empty-future-peg{border:1px solid var(--border-color);opacity:.25}.row-feedback-pins{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;width:38px;min-width:38px;max-width:38px;height:38px;min-height:38px;max-height:38px;padding:4px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;align-items:center;justify-items:center;box-sizing:border-box;box-shadow:inset 0 1px 2px rgba(0,0,0,.15);flex-shrink:0}.row-feedback-pins.pins-5,.row-feedback-pins[data-slots="5"]{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:3px;width:44px;min-width:44px;max-width:44px;height:38px;min-height:38px;max-height:38px;padding:3px}.feedback-pin{width:11px;height:11px;border-radius:50%;display:block;box-sizing:border-box;transition:.2s}.row-feedback-pins.pins-5 .feedback-pin,.row-feedback-pins[data-slots="5"] .feedback-pin{width:9.5px;height:9.5px}.feedback-pin.pin-black{background:#000;border:1.5px solid #f8a81d;box-shadow:0 0 4px rgba(248,168,29,.45),inset 0 1px 2px rgba(255,255,255,.2)}.feedback-pin.pin-white{background:#fff;border:1.5px solid #e2e8f0;box-shadow:0 0 5px rgba(255,255,255,.6)}.feedback-pin.pin-empty{background:rgba(0,0,0,.3);border:1px dashed rgba(168,147,139,.45);opacity:.7}button.mm-peg.removable-peg{cursor:pointer;outline:0;transition:transform .15s,box-shadow .15s}button.mm-peg.removable-peg:hover{transform:scale(1.12);box-shadow:0 0 8px rgba(239,68,68,.6),0 2px 6px rgba(0,0,0,.3)}button.mm-peg.removable-peg:active{transform:scale(.95)}.row-current-indicator{grid-column:1/-1;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--accent-amber);animation:1.8s ease-in-out infinite mm-pulse-indicator}.row-current-indicator svg.current-indicator-svg{width:16px;height:16px;display:block}@keyframes mm-pulse-indicator{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.18);opacity:1}}.row-empty-indicator{grid-column:1/-1;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--text-muted);opacity:.35;font-size:14px;font-weight:700;line-height:1}.mastermind-picker-area{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;padding-top:8px;border-top:1px solid var(--border-color)}.mastermind-palette{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%}.mm-palette-btn{display:flex;flex-direction:column;align-items:center;gap:2px;background:0 0;border:none;cursor:pointer;padding:4px;border-radius:8px;transition:transform .14s}.mm-palette-btn:hover{transform:translateY(-2px)}.palette-circle{width:36px;height:36px;border-radius:50%;border:2px solid rgba(255,255,255,.4);box-shadow:0 3px 6px rgba(0,0,0,.25);display:block}.palette-key-badge{font-size:10px;font-weight:700;color:var(--text-muted)}.mastermind-submit-btn{width:100%;max-width:240px;height:40px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}.matchsticks-board-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;max-width:600px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:24px 16px;box-shadow:none!important;min-height:290px;height:290px;box-sizing:border-box}.matchsticks-hint-banner{width:100%;background:rgba(245,158,11,.15);border:1px solid rgba(245,158,11,.35);color:#f59e0b;border-radius:8px;padding:8px 12px;font-size:13px;text-align:center;min-height:38px;height:38px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.matchsticks-hint-card{z-index:1200}.matchsticks-equation-container{display:flex;align-items:center;justify-content:center;gap:16px;min-height:180px;width:100%;overflow-x:auto;padding:10px 0}.match-digit-box{position:relative;width:76px;height:140px;flex-shrink:0}.match-equal-box,.match-op-box{position:relative;width:50px;height:140px;flex-shrink:0}.matchstick{position:absolute;border:none;background:0 0;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .14s,opacity .14s;z-index:2}.matchstick .match-wood{background:#d97706;border-radius:2px;box-shadow:none!important}.matchstick .match-head{background:#ef4444;border-radius:2px;position:absolute;box-shadow:none!important}[data-theme=dark] .matchstick .match-wood{background:#f59e0b}[data-theme=dark] .matchstick .match-head{background:#ef4444}.seg-a{top:0;left:10px;width:56px;height:16px}.seg-a .match-wood{width:56px;height:10px}.seg-a .match-head{width:14px;height:12px;left:2px}.seg-b{top:6px;right:0;width:16px;height:64px}.seg-b .match-wood{width:10px;height:64px}.seg-b .match-head{width:12px;height:14px;top:2px}.seg-c{bottom:6px;right:0;width:16px;height:64px}.seg-c .match-wood{width:10px;height:64px}.seg-c .match-head{width:12px;height:14px;top:2px}.seg-d{bottom:0;left:10px;width:56px;height:16px}.seg-d .match-wood{width:56px;height:10px}.seg-d .match-head{width:14px;height:12px;left:2px}.seg-e{bottom:6px;left:0;width:16px;height:64px}.seg-e .match-wood{width:10px;height:64px}.seg-e .match-head{width:12px;height:14px;top:2px}.seg-f{top:6px;left:0;width:16px;height:64px}.seg-f .match-wood{width:10px;height:64px}.seg-f .match-head{width:12px;height:14px;top:2px}.seg-g{top:62px;left:10px;width:56px;height:16px}.seg-g .match-wood{width:56px;height:10px}.seg-g .match-head{width:14px;height:12px;left:2px}.seg-op-h{top:62px;left:0;width:50px;height:16px}.seg-op-h .match-wood{width:50px;height:10px}.seg-op-h .match-head{width:14px;height:12px;left:2px}.seg-op-v{top:42px;left:17px;width:16px;height:56px}.seg-op-v .match-wood{width:10px;height:56px}.seg-op-v .match-head{width:12px;height:14px;top:2px}.seg-eq-1{top:50px;left:0;width:50px;height:16px}.seg-eq-1 .match-wood{width:50px;height:10px}.seg-eq-1 .match-head{width:14px;height:12px;left:2px}.seg-eq-2{top:74px;left:0;width:50px;height:16px}.seg-eq-2 .match-wood{width:50px;height:10px}.seg-eq-2 .match-head{width:14px;height:12px;left:2px}.matchstick.empty{opacity:.12}.matchstick.empty .match-wood{background:var(--border-color);box-shadow:none}.matchstick.empty .match-head{display:none}.matchstick.can-drop{opacity:.65;outline:#f59e0b dashed 2px;border-radius:4px}.matchstick.can-pick:hover{transform:scale(1.08)}.caro-board-wrapper{display:flex;flex-direction:column;align-items:center;gap:12px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:14px;box-shadow:0 4px 16px rgba(0,0,0,.12);width:100%;max-width:560px}.caro-canvas-container{display:flex;justify-content:center;align-items:center;width:100%;position:relative}.caro-canvas{display:block;cursor:pointer;touch-action:none;box-shadow:0 2px 8px rgba(0,0,0,.15)}.caro-turn-badge{display:inline-flex;align-items:center;background:var(--bg-tertiary);color:var(--text-main);border:1px solid var(--border-color);transition:.2s}.caro-turn-badge.player-turn{background:rgba(43,105,114,.15);color:#2b6972;border:1px solid rgba(43,105,114,.35)}.caro-turn-badge.player-turn .caro-turn-dot{background:#2b6972}.caro-turn-badge.ai-turn{background:rgba(201,110,91,.15);color:#c96e5b;border:1px solid rgba(201,110,91,.35)}.caro-turn-badge.ai-turn .caro-turn-dot{background:#c96e5b}.caro-turn-badge.player2-turn{background:rgba(201,110,91,.15);color:#c96e5b;border:1px solid rgba(201,110,91,.35)}.caro-turn-badge.player2-turn .caro-turn-dot{background:#c96e5b}.caro-turn-badge.game-over{background:rgba(100,116,139,.15);color:var(--text-muted);border:1px solid var(--border-color)}.caro-turn-dot{width:8px;height:8px;border-radius:50%;background:#2b6972}.caro-ai-first-btn[hidden]{display:none!important}.caro-ai-first-btn.is-active{color:var(--accent-amber)!important;border-color:var(--accent-amber)!important;background:color-mix(in srgb,var(--accent-amber) 14%,var(--bg-tertiary))!important}html[data-theme] .caro-turn-badge.player-turn{background:color-mix(in srgb,var(--accent-emerald) 14%,var(--bg-tertiary));color:var(--accent-emerald);border-color:color-mix(in srgb,var(--accent-emerald) 40%,var(--border-color))}html[data-theme] .caro-turn-badge.player-turn .caro-turn-dot{background:var(--accent-emerald)}html[data-theme] .caro-turn-badge.ai-turn,html[data-theme] .caro-turn-badge.player2-turn{background:color-mix(in srgb,var(--accent-red) 14%,var(--bg-tertiary));color:var(--accent-red);border-color:color-mix(in srgb,var(--accent-red) 40%,var(--border-color))}html[data-theme] .caro-turn-badge.ai-turn .caro-turn-dot,html[data-theme] .caro-turn-badge.player2-turn .caro-turn-dot{background:var(--accent-red)}.caro-turn-indicator{display:inline-flex;align-items:center;gap:7px;min-width:74px;height:32px;box-sizing:border-box;padding:0 10px 0 6px;border:1px solid var(--border-color);border-radius:999px;background:var(--bg-tertiary);color:var(--text-muted);font-size:12px;font-weight:700;white-space:nowrap;transition:color .18s,background .18s,border-color .18s}.caro-current-mark{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--bg-secondary);color:var(--text-muted);font-size:13px;font-weight:800;line-height:1}.caro-turn-indicator.is-player-turn{color:var(--accent-emerald);border-color:color-mix(in srgb,var(--accent-emerald) 42%,var(--border-color));background:color-mix(in srgb,var(--accent-emerald) 10%,var(--bg-tertiary))}.caro-turn-indicator.is-player-turn .caro-current-mark{color:var(--bg-primary);background:var(--accent-emerald)}.caro-turn-indicator.is-opponent-turn{color:var(--accent-red);border-color:color-mix(in srgb,var(--accent-red) 42%,var(--border-color));background:color-mix(in srgb,var(--accent-red) 10%,var(--bg-tertiary))}.caro-turn-indicator.is-opponent-turn .caro-current-mark{color:var(--bg-primary);background:var(--accent-red)}.caro-turn-indicator.is-game-over{color:var(--accent-amber);border-color:color-mix(in srgb,var(--accent-amber) 44%,var(--border-color))}.caro-turn-indicator.is-game-over .caro-current-mark{color:var(--bg-primary);background:var(--accent-amber)}.caro-svg-overlay{position:absolute;left:50%;top:50%;z-index:2;display:block;max-width:100%;max-height:100%;transform:translate(-50%,-50%);overflow:visible;pointer-events:none}.caro-svg-overlay path{fill:none;stroke-linecap:round;stroke-linejoin:round}.caro-hint-card .hint-actions{display:flex;flex-wrap:wrap;gap:8px}.caro-hint-card .hint-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.waterjug-board-wrapper{display:flex;flex-direction:column;align-items:center;gap:20px;width:100%;border:0;border-radius:0;background:0 0;box-shadow:none}.waterjug-prompt-badge{text-align:center;font-size:14px;font-weight:700;color:var(--text-muted);letter-spacing:.01em}.waterjug-jugs-container{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:18px 14px}.wj-jug-wrapper{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;border-radius:16px;user-select:none}.wj-jug-wrapper.wj-target-reached{animation:.5s wj-bounce}@keyframes wj-bounce{0%,100%{transform:translateY(-4px)}50%{transform:translateY(-12px)}}.wj-jug-name{font-size:12.5px;font-weight:800;color:var(--text-muted);letter-spacing:.02em;text-transform:uppercase}.wj-jug-svg-wrap{width:110px;display:flex;align-items:flex-end;justify-content:center;cursor:pointer}.wj-jug-svg{overflow:visible;transition:filter .2s}.wj-jug-svg .wj-body-bg{fill:var(--wj-body-surface,#ffffff)}.wj-jug-svg .wj-water-fill{transition:fill .2s}html[data-theme=dark]{--wj-body-surface:#f8fafc;--wj-body-surface:#211c17}.wj-jug-wrapper:hover .wj-jug-svg{filter:drop-shadow(0 6px 10px rgba(0,0,0,.2))}.wj-jug-wrapper.wj-selected .wj-jug-svg{filter:drop-shadow(0 8px 16px rgba(0,0,0,.3))}.wj-jug-cap-label{font-size:12px;font-weight:800;color:var(--text-muted);text-align:center}.pentomino-board-wrapper{display:flex;flex-direction:column;align-items:center;gap:22px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:14px;box-shadow:0 4px 16px rgba(0,0,0,.12);width:100%;max-width:580px}.pentomino-canvas-container{display:flex;justify-content:center;align-items:center;width:100%}.pentomino-canvas{display:block;border-radius:8px;cursor:pointer;touch-action:none;background:0 0!important;border:none!important;box-shadow:none!important}.pentomino-tray-container{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;padding:24px 2px 2px;background:0 0;border:0;border-radius:0;position:relative;touch-action:none}.pentomino-tray-container::before{content:'';position:absolute;top:0;left:20%;width:60%;height:2px;border-radius:2px;background:var(--border-thick)}.pent-tray-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 8px;background:var(--bg-card);border:1.5px solid var(--border-color);border-radius:8px;cursor:pointer;transition:.14s;position:relative}.pent-tray-card.selected{border-color:var(--accent-amber);box-shadow:0 0 10px rgba(248,168,29,.28);transform:translateY(-2px)}.pent-tray-card.placed{opacity:.35}.pent-preview-box{position:relative;margin:4px}.pent-unit-square{position:absolute;width:12px;height:12px;border-radius:2px;border:1px solid rgba(255,255,255,.3)}.pent-card-label{font-size:11px;font-weight:700;color:var(--text-main)}.pent-placed-tag{font-size:9px;color:var(--accent-cyan);font-weight:700}.river-board-wrapper{display:flex;flex-direction:column;align-items:center;gap:12px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:14px;box-shadow:0 4px 16px rgba(0,0,0,.12)}.river-prompt-desc{font-size:13px;color:var(--text-muted);text-align:center;max-width:580px}.river-alert-banner{width:100%;padding:8px 12px;border-radius:8px;font-size:13px;text-align:center;font-weight:600}.river-alert-banner.danger{background:rgba(239,68,68,.15);border:1px solid rgba(239,68,68,.35);color:#ef4444}.river-alert-banner.hint{background:rgba(245,158,11,.15);border:1px solid rgba(245,158,11,.35);color:#f59e0b}.river-game-layout{max-width:min(96vw,1120px)!important;width:100%}.river-board-wrapper{width:100%;max-width:1100px}.river-svg-stage-container{width:100%;max-width:1100px;margin:0 auto;border-radius:12px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.18);border:1px solid var(--border-color);background:var(--bg-card);position:relative}.river-stage-svg{width:100%;height:auto;display:block;user-select:none}:root{--river-sky:#e0f2fe;--river-sky-top:#bae6fd;--river-sky-bottom:#f0fdf4;--river-grass-left:#22c55e;--river-grass-left-light:#4ade80;--river-grass-left-dark:#16a34a;--river-grass-right:#16a34a;--river-grass-right-light:#22c55e;--river-grass-right-dark:#15803d;--river-soil:#d97706;--river-water:#38bdf8;--river-water-top:#38bdf8;--river-water-bottom:#0284c7;--river-wave:#f0f9ff;--river-trunk:#78350f;--river-leaf-dark:#15803d;--river-leaf-mid:#16a34a;--river-leaf-light:#4ade80;--river-willow:#15803d;--river-boat-hull:#854d0e;--river-boat-hull-light:#b45309;--river-boat-hull-dark:#78350f;--river-boat-inner:#92400e;--river-seat-peg:#451a03;--river-oar-handle:#f59e0b;--river-oar-blade:#b45309;--river-paddle-bg:#0284c7;--river-paddle-border:#0369a1;--river-paddle-text:#ffffff;--river-card-bg:rgba(255, 255, 255, 0.95);--river-card-stroke:#cbd5e1;--river-char-title:#0f172a;--river-bank-label:#334155;--river-pill-bg:#059669;--river-pill-text:#ffffff}[data-theme=dark]{--river-sky:#0b0f19;--river-sky-top:#090d16;--river-sky-bottom:#111827;--river-grass-left:#14532d;--river-grass-left-light:#065f46;--river-grass-left-dark:#043a2c;--river-grass-right:#166534;--river-grass-right-light:#047857;--river-grass-right-dark:#064e3b;--river-soil:#271810;--river-water:#07365c;--river-water-top:#07365c;--river-water-bottom:#02223c;--river-wave:#38bdf8;--river-trunk:#451a03;--river-leaf-dark:#064e3b;--river-leaf-mid:#065f46;--river-leaf-light:#047857;--river-willow:#10b981;--river-boat-hull:#5c2b0c;--river-boat-hull-light:#92400e;--river-boat-hull-dark:#572506;--river-boat-inner:#451a03;--river-seat-peg:#1e0e05;--river-oar-handle:#b45309;--river-oar-blade:#78350f;--river-paddle-bg:#059669;--river-paddle-border:#10b981;--river-paddle-text:#ffffff;--river-card-bg:rgba(36, 27, 24, 0.95);--river-card-stroke:#574138;--river-char-title:#fdf8f6;--river-bank-label:#cbd5e1;--river-pill-bg:#059669;--river-pill-text:#ffffff}.svg-sky{fill:var(--river-sky)}.svg-grass-left{fill:var(--river-grass-left)}.svg-grass-right{fill:var(--river-grass-right)}.svg-soil{fill:var(--river-soil)}.svg-water{fill:var(--river-water)}.svg-wave{stroke:var(--river-wave);stroke-width:4;fill:none;stroke-linecap:round}.svg-trunk{fill:var(--river-trunk)}.svg-tree-leaf-dark{fill:var(--river-leaf-dark)}.svg-tree-leaf-mid{fill:var(--river-leaf-mid)}.svg-tree-leaf-light{fill:var(--river-leaf-light)}.svg-willow-tendril{stroke:var(--river-willow);fill:none}.svg-boat-hull{fill:var(--river-boat-hull)}.svg-boat-inner{fill:var(--river-boat-inner)}.svg-seat-peg{fill:var(--river-seat-peg)}.svg-oar-handle{fill:var(--river-oar-handle)}.svg-oar-blade{fill:var(--river-oar-blade)}.svg-char-card{fill:var(--river-card-bg);stroke:var(--river-card-stroke);stroke-width:1.8}.svg-char-title{fill:var(--river-char-title);font-family:system-ui,sans-serif;font-size:13px;font-weight:800;text-anchor:middle}.svg-bank-label{fill:var(--river-bank-label);font-family:system-ui,sans-serif;font-size:13px;font-weight:800;text-anchor:middle;letter-spacing:.5px}.svg-boat-water-hitbox{cursor:pointer;transition:.2s}.svg-boat-ripple{stroke:var(--river-wave);stroke-width:3.5;stroke-linecap:round;fill:none;opacity:.85}.svg-boat-ripple-sub{stroke:var(--river-wave);stroke-width:2.2;stroke-linecap:round;fill:none;opacity:.6}.svg-boat-paddle-btn{fill:var(--river-paddle-bg);stroke:var(--river-paddle-border);stroke-width:1.5;filter:drop-shadow(0 2px 6px rgba(0, 0, 0, .2));transition:.2s cubic-bezier(.16, 1, .3, 1);transform-origin:117px 126px}.svg-boat-water-hitbox:hover .svg-boat-paddle-btn{transform:scale(1.06);filter:drop-shadow(0 4px 12px rgba(245, 158, 11, .55)) brightness(1.12)}.svg-boat-water-hitbox.ready-to-sail .svg-boat-paddle-btn{filter:drop-shadow(0 0 10px rgba(16, 185, 129, .65))}.svg-boat-water-hitbox.ready-to-sail:hover .svg-boat-paddle-btn{transform:scale(1.08);filter:drop-shadow(0 0 16px rgba(16, 185, 129, .95)) brightness(1.18)}.svg-boat-paddle-text{font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700;fill:var(--river-paddle-text);text-anchor:middle;pointer-events:none;user-select:none}[data-theme=dark] .svg-char-avatar{filter:sepia(22%) saturate(82%) brightness(94%)}.svg-boat-vessel{cursor:pointer;transition:filter .2s}.svg-boat-vessel:hover{filter:drop-shadow(0 4px 12px rgba(245, 158, 11, .45))}.svg-boat-vessel.ready-to-sail{filter:drop-shadow(0 0 12px rgba(217, 145, 23, .55))}.svg-boat-pill{fill:var(--river-pill-bg);transition:fill .2s}.svg-boat-vessel:hover .svg-boat-pill{fill:#d97706}.svg-boat-vessel.ready-to-sail:hover .svg-boat-pill{fill:#c77c13}.svg-boat-text{font-family:system-ui,sans-serif;font-size:11px;font-weight:800;fill:var(--river-pill-text);text-anchor:middle;pointer-events:none}.svg-boat-vessel.hint-pulse{animation:.8s infinite alternate pulse-boat-glow}@keyframes pulse-boat-glow{0%{filter:drop-shadow(0 0 4px #d99117)}100%{filter:drop-shadow(0 0 18px #d99117)}}.svg-char-item{cursor:pointer;transition:filter .15s,opacity .15s}.svg-char-item:hover{filter:drop-shadow(0 0 12px rgba(245, 158, 11, .95)) brightness(1.12)}.svg-char-item.is-opposite{opacity:.72}.svg-char-item.is-opposite:hover{opacity:1;filter:drop-shadow(0 0 10px rgba(239, 68, 68, .75)) brightness(1.08)}.svg-char-item.is-on-boat{filter:drop-shadow(0 0 8px rgba(245, 158, 11, .95))!important}.svg-char-item.is-hinted{filter:drop-shadow(0 0 14px #d99117)!important;animation:.8s infinite alternate pulse-svg-char-hint}@keyframes pulse-svg-char-hint{0%{filter:drop-shadow(0 0 4px #d99117)}100%{filter:drop-shadow(0 0 16px #d99117)}}@keyframes svg-munch{0%,100%{transform:scale(1)}30%{transform:scale(1.15) rotate(-6deg)}60%{transform:scale(1.2) rotate(6deg)}85%{transform:scale(1.1) rotate(-3deg)}}@keyframes svg-eaten{0%{transform:scale(1);opacity:1}35%{transform:scale(.85) rotate(12deg);opacity:.8}65%{transform:scale(.5) rotate(-15deg);opacity:.3}100%{transform:scale(.05);opacity:0}}.svg-char-item.is-munching{animation:.9s cubic-bezier(.34,1.56,.64,1) forwards svg-munch!important}.svg-char-item.is-eaten{animation:.9s ease-in .2s forwards svg-eaten!important;pointer-events:none!important}#board-wrapper,.board-wrapper{border-radius:0!important}.btn-icon,.btn-timer-pause,.header-nav-btn,.topbar-btn,.topbar-stars-btn{border-radius:50%!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid var(--border-color)!important;background:var(--btn-bg)!important;color:var(--text-main)!important;cursor:pointer!important;touch-action:manipulation!important;transition:.15s!important;box-shadow:none!important}.btn-icon:hover,.header-nav-btn:hover,.topbar-btn:hover{background:var(--btn-hover-bg)!important;color:var(--accent-amber)!important;border-color:var(--accent-amber)!important}.caro-turn-badge,.mines-counter-badge,.nim-turn-badge,.topbar-badge,.topbar-stat{background:var(--bg-tertiary)!important;color:var(--text-main)!important;display:inline-flex!important;align-items:center!important;box-shadow:none!important}.unified-game-layout{display:flex!important;flex-direction:column!important;align-items:center!important;width:100%!important;padding:12px 16px 24px!important;box-sizing:border-box!important}.game-shared-top-bar{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:12px!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important}.game-screen-container{display:flex!important;flex-direction:column!important;align-items:center!important;width:100%!important;max-width:min(96vw,1100px)!important;margin:0 auto!important;background:0 0!important;border:none!important;box-shadow:none!important;border-radius:12px!important;padding:16px!important;box-sizing:border-box!important;outline:0!important}.game-board-wrapper:focus,.game-board-wrapper:focus-visible,.game-screen-container:focus,.game-screen-container:focus-visible,[tabindex]:focus,[tabindex]:focus-visible,canvas:focus,canvas:focus-visible,svg:focus,svg:focus-visible{outline:0!important;box-shadow:none!important}@media (max-width:640px){.game-screen-container{border:none!important;border-radius:0!important;background:0 0!important;box-shadow:none!important;padding:4px 0!important}}.game-descs-bar{width:100%!important;text-align:center!important;font-size:.92rem!important;color:var(--text-muted)!important;margin-bottom:6px!important;line-height:1.5!important;font-weight:500!important}.game-status-bar{width:100%!important;text-align:center!important;font-size:.95rem!important;font-weight:600!important;color:var(--accent-amber)!important;margin-bottom:12px!important;min-height:24px!important;line-height:1.5!important}.game-status-card{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:min(92vw,760px)!important;box-sizing:border-box!important;padding:7px 12px!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;border-radius:9px!important;text-align:center!important;font-size:.9rem!important;font-weight:600!important;color:var(--text-main)!important;margin:0 auto 12px!important;min-height:38px!important;line-height:1.5!important}.game-shared-top-bar+.game-status-card{margin-top:-4px!important}.game-status-card>svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:var(--accent-amber);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.matchsticks-status-bar{flex-wrap:wrap}.matchsticks-status-bar .matchsticks-moves-card{display:inline-flex;align-items:center;gap:6px;background:0 0;border:none;padding:0;box-shadow:none}.matchsticks-status-bar .matchsticks-moves-card>svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:var(--accent-amber);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.matchsticks-status-count{font-weight:800;color:var(--accent-amber);white-space:nowrap}.matchsticks-status-divider{width:1px;height:18px;background:var(--border-color)}.matchsticks-equation-slots{display:flex;align-items:center;justify-content:center;gap:16px;flex-shrink:0}.einstein-hint-card .hint-actions [hidden],.game2048-hint-card .hint-actions [hidden]{display:none!important}.game-dpad,.game2048-dpad,.maze-dpad,.pathfinding-dpad,.sokoban-dpad{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;user-select:none!important;flex-wrap:nowrap!important;display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:10px!important;user-select:none!important}.game-dpad .dpad-center,.game-dpad .dpad-middle,.game-dpad .dpad-middle-row,.game-dpad .dpad-row{display:contents!important}.game-dpad .dpad-center-hub{display:none!important}.dpad-btn,.game-dpad .dpad-btn,.game2048-dpad .dpad-btn,.maze-dpad .dpad-btn,.pathfinding-dpad .dpad-btn,.sokoban-dpad .dpad-btn{flex:1 1 0!important;width:auto!important;height:48px!important;min-width:56px!important;max-width:88px!important;min-height:46px!important;border-radius:10px!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;cursor:pointer!important;touch-action:manipulation!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;transition:.12s!important;box-shadow:0 2px 5px rgba(0,0,0,.1)!important}.dpad-btn svg,.game-dpad .dpad-btn svg{width:22px!important;height:22px!important;stroke-width:2.5!important;display:block!important}@media (max-width:820px){.app-header{justify-content:space-between!important;padding:10px 14px!important}.app-header>.logo-area{width:auto!important;flex:1 1 0;justify-content:flex-start!important;order:0}.app-header>.header-row-divider{order:1;flex-basis:100%;width:70%;max-width:70%}.app-header>.header-right-group{width:100%!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px!important;order:2}}.app-footer{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:14px 24px!important;background:var(--bg-secondary)!important;border-top:1px solid var(--border-color)!important;color:var(--text-muted)!important;font-size:.9rem!important;margin-top:auto!important;width:100%!important;box-sizing:border-box!important}.app-footer .footer-left{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}.app-footer .footer-brand{font-weight:700!important;color:var(--text-main)!important}.app-footer .footer-tagline{color:var(--text-muted)!important}.app-footer .footer-link{color:var(--accent-amber)!important;text-decoration:none!important;font-weight:500!important;transition:opacity .2s!important}.app-footer .footer-link:hover{text-decoration:underline!important;opacity:.85!important}@media (max-width:680px){.app-footer{flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:8px!important;padding:14px 16px!important}.app-footer .footer-left{justify-content:center!important}}.game-seo-section{width:100%;max-width:960px;margin:36px auto 28px;padding:0 16px;box-sizing:border-box}#game-seo-guide[hidden]{display:none}#game-seo-guide .game-seo-card p{line-height:1.6;margin:.5rem 0}.game-seo-card{background:var(--bg-card,var(--bg-secondary));border:1px solid var(--border-color);border-radius:12px;padding:24px 28px;box-shadow:0 4px 16px rgba(0,0,0,.06)}.game-seo-title{font-size:1.28rem;font-weight:700;color:var(--text-main);margin:0 0 12px;line-height:1.4}.game-seo-description{font-size:.95rem;color:var(--text-muted);line-height:1.6;margin:0 0 20px}.game-seo-subheading{font-size:1.05rem;font-weight:600;color:var(--accent-amber);margin:0 0 14px;display:flex;align-items:center;gap:8px}.game-seo-list{list-style:none;padding:0;margin:0 0 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px 18px}.game-seo-item{display:flex;align-items:flex-start;gap:10px;font-size:.9rem;color:var(--text-main);line-height:1.5}.game-seo-badge-icon{flex-shrink:0;color:var(--accent-amber);margin-top:2px}.game-seo-footer-note{font-size:.85rem;color:var(--text-muted);border-top:1px dashed var(--border-color);padding-top:14px;margin:0}@media (max-width:680px){.game-seo-section{margin:24px auto 20px;padding:0 12px}.game-seo-card{padding:18px 16px}.game-seo-title{font-size:1.15rem}.game-seo-list{grid-template-columns:1fr;gap:10px}}#caro-canvas,#maze-canvas,#sokoban-canvas,.caro-canvas,.maze-canvas,.sokoban-canvas{border-radius:0!important}#sokoban-stars-box .star-icon,.topbar-stars .star-icon{stroke:none!important;border:none!important}#sokoban-stars-box,.topbar-stars{border:none!important;box-shadow:none!important;background:0 0!important}#sokoban-stars-box .star-click-btn,.topbar-stars .star-click-btn{border:none!important;box-shadow:none!important;background:0 0!important;outline:0!important;padding:2px!important}.star-icon.filled{fill:#f8a81d!important;stroke:#d97706!important;stroke-width:.5px!important;opacity:1!important}.star-icon.empty{fill:rgba(148,163,184,0.3)!important;stroke:rgba(148,163,184,0.6)!important;stroke-width:1.2px!important;opacity:.65!important}[data-theme=dark] .star-icon.filled{fill:#f8a81d!important;stroke:#d97706!important;opacity:1!important}[data-theme=dark] .star-icon.empty{fill:rgba(255,255,255,0.15)!important;stroke:rgba(255,255,255,0.35)!important;stroke-width:1px!important;opacity:.65!important}.game-screen-container .caro-board-wrapper,.game-screen-container .caro-canvas-container,.game-screen-container .game-board-wrapper,.game-screen-container .mastermind-board-wrapper,.game-screen-container .matchsticks-board-wrapper,.game-screen-container .maze-board-wrapper,.game-screen-container .maze-canvas-container,.game-screen-container .minesweeper-board-wrapper,.game-screen-container .minesweeper-scroll-container,.game-screen-container .pentomino-board-wrapper,.game-screen-container .pentomino-canvas-container,.game-screen-container .pipes-board-wrapper,.game-screen-container .river-board-wrapper,.game-screen-container .river-svg-stage-container,.game-screen-container .sokoban-board-wrapper,.game-screen-container .sokoban-canvas-container,.game-screen-container .tangram-board-wrapper,.game-screen-container .waterjug-board-wrapper,.game-screen-container .waterjug-jugs-stage{border:none!important;box-shadow:none!important;background:0 0!important;padding:0!important;margin:0 auto!important}.waterjug-game-layout{--wj-flow-color:#e5a229}.waterjug-board-wrapper{position:relative;gap:12px;width:min(100%,660px);max-width:660px;padding:8px 8px 12px;overflow:visible}.waterjug-top-bar #waterjug-target-val{color:var(--accent-amber)!important}.waterjug-tools-row{width:min(100%,590px);min-height:60px;display:flex;justify-content:flex-start;align-items:center;gap:10px}.wj-tool-btn{display:grid;place-items:center;flex:0 0 60px;width:60px;height:60px;padding:2px;border:0;border-radius:0;color:var(--accent-amber);background:0 0;box-shadow:none;cursor:pointer;transition:transform .16s,color .16s,opacity .16s,filter .16s;touch-action:manipulation;outline:0;-webkit-tap-highlight-color:transparent;position:relative}.wj-tool-btn::before{content:"";position:absolute;inset:-9px}.wj-tool-btn svg{position:relative;pointer-events:none;width:56px;height:56px;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;overflow:visible}.wj-tool-btn:active,.wj-tool-btn:focus,.wj-tool-btn:focus-visible{outline:0!important;box-shadow:none!important;background:0 0!important}.wj-tool-btn .wj-tool-water{fill:currentColor;stroke-width:1.5}.wj-tool-btn.is-ready{filter:drop-shadow(0 2px 3px color-mix(in srgb, var(--accent-amber) 28%, transparent))}.wj-tool-btn:not(:disabled):hover{transform:translateY(-2px) scale(1.05);background:0 0}.wj-tool-btn:disabled{opacity:.38;cursor:not-allowed}.wj-tool-btn.wj-tool-active{color:var(--wj-flow-color,var(--accent-amber))!important;animation:.28s ease-in-out infinite alternate wj-tool-pumping!important;filter:drop-shadow(0 0 10px color-mix(in srgb, var(--wj-flow-color, var(--accent-amber)) 60%, transparent))!important}@keyframes wj-tool-pumping{0%{transform:scale(1)}100%{transform:scale(1.15) translateY(-2px)}}.waterjug-drain-row{display:flex;justify-content:flex-end;align-items:center;width:min(100%,590px);min-height:60px;margin-top:-2px}.wj-drain-btn{margin-right:2px}.waterjug-board-wrapper.no-tap{padding-top:56px;padding-bottom:24px}.waterjug-board-wrapper.no-tap .waterjug-drain-row,.waterjug-board-wrapper.no-tap .waterjug-tools-row{display:none!important}.waterjug-jugs-stage{position:relative;width:min(100%,590px);margin:0 auto;overflow:visible}.waterjug-jugs-container{display:flex;flex-wrap:nowrap;justify-content:center;align-items:flex-end;gap:clamp(3px,2vw,14px);width:100%;min-height:252px}.wj-jug-wrapper{flex:1 1 0;min-width:0;transform-origin:50% 50%;transition:transform .35s cubic-bezier(.2,.8,.2,1),filter .2s;outline:0;-webkit-tap-highlight-color:transparent}.wj-jug-wrapper:hover{transform:translateY(-4px)}.wj-jug-wrapper.wj-selected{z-index:2;transform:translateY(-54px) scale(1.08)}.wj-jug-wrapper.wj-selected .wj-jug-svg{filter:drop-shadow(0 24px 28px color-mix(in srgb, var(--accent-amber) 40%, transparent))}.wj-jug-wrapper:active,.wj-jug-wrapper:focus,.wj-jug-wrapper:focus-visible{outline:0!important;box-shadow:none!important}.wj-jug-svg-wrap{width:clamp(68px,24vw,110px);max-width:100%}.wj-water-fill{transition:y .45s cubic-bezier(.2,.8,.2,1),height .45s cubic-bezier(.2,.8,.2,1)}.wj-jug-cap-label{margin-top:0;color:var(--text-muted);font-variant-numeric:tabular-nums}.wj-jug-wrapper{flex:0 1 auto;width:max-content;max-width:100%;padding:3px 1px;gap:2px}.wj-jug-svg-wrap{height:auto;aspect-ratio:120/var(--wj-svg-height);flex:0 1 auto}.wj-jug-svg{--wj-select-ring:var(--accent-amber);display:block;width:100%;height:100%}.wj-jug-wrapper.wj-pouring-target .wj-jug-svg{animation:.55s ease-in-out wj-receive}@keyframes wj-receive{0%,100%{transform:scale(1)}50%{transform:scale(.96) translateY(4px)}}.wj-pour-overlay{position:absolute;inset:0;z-index:50;display:block;width:100%;height:100%;overflow:visible;pointer-events:none}.wj-pour-stream-shadow{fill:none;stroke:color-mix(in srgb,var(--wj-flow-color) 35%,transparent);stroke-width:24;stroke-linecap:round;filter:blur(4px)}.wj-pour-stream{fill:none;stroke:var(--wj-flow-color);stroke-width:14;stroke-linecap:round;stroke-dasharray:16 8;animation:.2s linear infinite wj-stream-flow,.1s ease-out both wj-stream-in}.wj-pour-stream-core{fill:none;stroke:#ffffff;stroke-width:5;stroke-linecap:round;opacity:.9}.wj-splash-particle{fill:var(--wj-flow-color);animation:.32s ease-out infinite alternate wj-splash-pop;transform-origin:center}.wj-splash-ring{fill:none;stroke:var(--wj-flow-color);stroke-width:3;opacity:.7;animation:.35s ease-out infinite wj-ring-expand;transform-origin:center}@keyframes wj-ring-expand{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.35);opacity:.1}}@keyframes wj-splash-pop{0%{transform:scale(.6);opacity:.5}100%{transform:scale(1.25);opacity:1}}@keyframes wj-stream-flow{to{stroke-dashoffset:-24}}@keyframes wj-stream-in{from{opacity:0;stroke-width:2}to{opacity:1;stroke-width:14}}html[data-theme=dark] .waterjug-game-layout{--wj-flow-color:#efb643}@media (max-width:640px){.waterjug-board-wrapper.no-tap{padding-top:36px;padding-bottom:16px}.waterjug-board-wrapper{width:calc(100vw - 14px);padding:5px 2px 10px;gap:8px}.waterjug-jugs-stage,.waterjug-tools-row{width:100%}.waterjug-tools-row{min-height:64px;gap:5px;padding-block:5px}.waterjug-drain-row{min-height:64px;margin-top:-4px;padding-block:5px}.wj-tool-btn{flex-basis:54px;width:54px;height:54px;border:0;border-radius:0;padding:0}.wj-tool-btn::before{inset:-11px}.wj-tool-btn svg{width:50px;height:50px}.waterjug-jugs-container{min-height:222px;gap:1px}.wj-jug-svg-wrap{width:clamp(66px,25vw,98px);height:auto}.wj-jug-wrapper{gap:2px;padding-inline:1px}.wj-jug-wrapper.wj-selected{transform:translateY(-28px) scale(1.045)}.wj-jug-cap-label{font-size:10px}#game-view-waterjug .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;width:calc(100% - 20px)!important;margin-inline:auto!important}#game-view-waterjug .mobile-game-stats>.game-timer,#game-view-waterjug .mobile-game-stats>.topbar-stat{min-width:0!important;width:100%!important;padding:4px 5px!important;column-gap:4px!important}#game-view-waterjug .mobile-game-stats .mobile-stat-label{font-size:8px!important}#game-view-waterjug .mobile-game-stats .stat-num,#game-view-waterjug .mobile-game-stats .timer-digits{font-size:13px!important}}html.force-mobile-layout #game-view-waterjug .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;width:calc(100% - 20px)!important;margin-inline:auto!important}html.force-mobile-layout #game-view-waterjug .mobile-game-stats>.game-timer,html.force-mobile-layout #game-view-waterjug .mobile-game-stats>.topbar-stat{min-width:0!important;width:100%!important;padding:4px 5px!important;column-gap:4px!important}html.force-mobile-layout #game-view-waterjug .mobile-game-stats .mobile-stat-label{font-size:8px!important}html.force-mobile-layout #game-view-waterjug .mobile-game-stats .stat-num,html.force-mobile-layout #game-view-waterjug .mobile-game-stats .timer-digits{font-size:13px!important}#btn-pipes-mode{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:50%!important;padding:0!important}.key-btn[data-digit]{position:relative!important}.key-remaining-badge{position:absolute!important;top:3px!important;left:5px!important;font-size:11px!important;font-weight:700!important;line-height:1!important;color:var(--text-muted)!important;opacity:.75!important;pointer-events:none!important;user-select:none!important}.key-btn.active .key-remaining-badge{color:#fff!important;opacity:.95!important}.key-btn.digit-completed .key-remaining-badge{opacity:.3!important}.key-btn.digit-completed{opacity:.45!important}#btn-pause:hover,.btn-timer-pause:hover,.eraser-tools-group .btn-icon:hover,.eraser-tools-group .btn:hover,.eraser-tools-group button:hover{background:var(--btn-hover-bg)!important;color:var(--accent-amber)!important}[data-theme=dark] .color-swatch.active{border-color:#fff!important;box-shadow:0 0 8px rgba(255,255,255,.6)!important}#btn-clear-arrows,#btn-clear-circles,#btn-clear-colors,#btn-clear-drawings,#btn-pause,.btn-timer-pause,.eraser-tools-group,.eraser-tools-group .btn,.eraser-tools-group .btn-icon,.eraser-tools-group button{border:none!important;box-shadow:none!important;background:0 0!important;outline:0!important}#btn-pause:hover,.btn-timer-pause:hover,.eraser-tools-group .btn-icon:hover,.eraser-tools-group .btn:hover,.eraser-tools-group button:hover{border:none!important;box-shadow:none!important;background:0 0!important;color:var(--accent-amber)!important;opacity:.75!important}.minesweeper-board{display:grid!important;gap:2.5px!important;background:var(--border-color)!important;padding:5px!important;border-radius:8px!important;user-select:none!important;box-shadow:none!important;border:1px solid var(--border-color)!important}.ms-cell{width:var(--ms-cell-size,32px)!important;height:var(--ms-cell-size,32px)!important;min-width:0!important;min-height:0!important;aspect-ratio:1/1!important;display:flex!important;align-items:center!important;justify-content:center!important;font-family:'Segoe UI',system-ui,-apple-system,sans-serif!important;font-weight:800!important;font-size:calc(var(--ms-cell-size, 32px) * .58)!important;line-height:1!important;border-radius:max(2px,calc(var(--ms-cell-size,32px) * .12))!important;cursor:pointer!important;user-select:none!important;touch-action:manipulation!important;transition:background-color .12s,transform .1s!important;border:none!important;box-shadow:none!important;box-sizing:border-box!important}.ms-cell.unrevealed{background:var(--bg-tertiary)!important;border:none!important;box-shadow:none!important}.ms-cell.unrevealed:hover{background:var(--btn-hover-bg)!important;filter:brightness(1.1)!important}.ms-cell.unrevealed:active{transform:scale(.94)!important}.ms-cell.revealed{background:var(--bg-secondary)!important;border:none!important;cursor:default!important;box-shadow:none!important}.ms-cell.revealed.exploded{background:#ef4444!important}.ms-cell.cursor-active{outline:2px solid var(--accent-amber)!important;outline-offset:-2px!important}[data-theme=dark] .minesweeper-board{background:#352823!important;border-color:#4d3a33!important}[data-theme=dark] .ms-cell.unrevealed{background:#241b18!important}[data-theme=dark] .ms-cell.unrevealed:hover{background:#352823!important}[data-theme=dark] .ms-cell.revealed{background:#171210!important}.game-shared-top-bar{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;width:fit-content!important;max-width:min(96vw,920px)!important;margin:8px auto!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;border-radius:10px!important;padding:4px 12px!important;min-height:42px!important;box-shadow:0 1px 4px rgba(0,0,0,.04)!important}.topbar-group{display:inline-flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;justify-content:center!important;margin:0!important;padding:0!important}.caro-turn-badge,.mines-counter-badge,.nim-turn-badge,.topbar-badge,.topbar-stat{border:none!important;background:var(--bg-tertiary)!important;color:var(--text-main)!important;border-radius:8px!important;padding:5px 12px!important;display:inline-flex!important;align-items:center!important;gap:6px!important;font-size:.85rem!important;font-weight:600!important;height:36px!important;box-sizing:border-box!important}.topbar-badge svg,.topbar-stat svg{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;stroke-width:2.2!important;flex-shrink:0!important}.header-nav-btn,.topbar-btn{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:50%!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}.header-nav-btn span svg,.header-nav-btn svg,.topbar-btn #mode-icon-container svg,.topbar-btn .pipes-mode-icon svg,.topbar-btn span svg,.topbar-btn svg{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;max-width:21px!important;max-height:21px!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;display:block!important;margin:auto!important;flex-shrink:0!important}.header-nav-btn span,.topbar-btn #mode-icon-container,.topbar-btn .pipes-mode-icon,.topbar-btn span{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important}.game2048-game-layout{display:flex;flex-direction:column;align-items:center;width:100%;max-width:600px;margin:0 auto;box-sizing:border-box}.game2048-board-wrapper{width:100%;max-width:480px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:16px;box-sizing:border-box;margin-bottom:16px;outline:0!important}#game2048-board:focus,#game2048-board:focus-visible,.game2048-board-wrapper:focus,.game2048-board-wrapper:focus-visible{outline:0!important;box-shadow:none!important}.game2048-status-bar{width:min(100%,520px);box-sizing:border-box;margin:0 auto 10px!important;padding:8px 14px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-secondary);color:var(--text-muted)!important;text-align:center;font-size:.92rem!important}.game2048-score-strip{display:flex;justify-content:center;gap:10px;width:min(100%,520px);margin:0 auto 12px}.game2048-score-card{display:grid;grid-template-columns:26px auto;grid-template-rows:auto auto;align-items:center;column-gap:8px;min-width:132px;padding:8px 14px;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-secondary);box-shadow:0 3px 10px color-mix(in srgb,var(--text-main) 8%,transparent)}.game2048-score-card svg{grid-row:1/3;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.game2048-score-label{color:var(--text-muted);font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.game2048-score-card strong{color:var(--text-main);font-size:1.15rem;line-height:1.15;font-variant-numeric:tabular-nums}.game2048-score-current{color:var(--accent-primary,var(--accent-amber))}.game2048-score-best{color:var(--accent-amber)}@media (max-width:420px){.game2048-score-strip{gap:7px}.game2048-score-card{min-width:0;flex:1;padding:8px 10px}}.game2048-hint-banner{padding:10px 14px;background:rgba(248,168,29,.13);border:1px solid #c77c13;border-radius:8px;margin-bottom:12px;font-size:.95rem;text-align:center;color:var(--text-main)}.game2048-grid-container{display:grid;grid-template-columns:repeat(var(--grid-size,4),1fr);grid-template-rows:repeat(var(--grid-size,4),1fr);gap:10px;aspect-ratio:1/1;width:100%;max-width:440px;margin:0 auto;background:var(--bg-secondary);padding:12px;border-radius:10px;box-sizing:border-box}.game2048-cell{container-type:inline-size;border-radius:10px;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:850;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;touch-action:none;box-shadow:0 2px 5px rgba(0,0,0,.08);transition:transform .12s cubic-bezier(.16, 1, .3, 1);padding:2px!important;text-align:center}.game2048-cell .tile-val{display:flex;align-items:center;justify-content:center;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;pointer-events:none}.game2048-cell[data-digits="5"] .tile-val{letter-spacing:-.035em}.game2048-cell[data-digits="6"] .tile-val{letter-spacing:-.045em}.game2048-cell[data-digits="7"] .tile-val{letter-spacing:-.055em}.game2048-cell[data-digits="8"] .tile-val{letter-spacing:-.065em}.game2048-cell.number-value-9plus .tile-val,.game2048-cell[data-digits="9"] .tile-val{letter-spacing:-.075em}.tile-empty{background:var(--bg-tertiary);color:transparent}.tile-2{background:#eee4da;color:#776e65}.tile-4{background:#ede0c8;color:#776e65}.tile-8{background:#f2b179;color:#f9f6f2}.tile-16{background:#f59563;color:#f9f6f2}.tile-32{background:#f67c5f;color:#f9f6f2}.tile-64{background:#f65e3b;color:#f9f6f2}.tile-128{background:#edcf72;color:#f9f6f2;font-size:.85em}.tile-256{background:#edcc61;color:#f9f6f2;font-size:.85em}.tile-512{background:#edc850;color:#f9f6f2;font-size:.8em}.tile-1024{background:#edc53f;color:#f9f6f2;font-size:.72em}.tile-2048{background:#edc22e;color:#fff;font-size:.72em;box-shadow:0 0 16px rgba(237,194,46,.6)}.tile-super{background:#3c3a32;color:#fff;font-size:.65em;box-shadow:0 0 20px rgba(0,0,0,.5)}[data-theme=dark] .tile-empty{background:#1e293b}[data-theme=dark] .tile-2048{box-shadow:0 0 16px rgba(139,92,246,.6)}[data-theme=dark] .tile-super{box-shadow:0 0 20px rgba(236,72,153,.6)}[data-theme=dark] .tile-2{background:#493629;color:#fff9ed}[data-theme=dark] .tile-4{background:#62452f;color:#fff9ed}[data-theme=dark] .tile-8{background:#8c4025;color:#fff}[data-theme=dark] .tile-16{background:#a65a37;color:#fff}[data-theme=dark] .tile-32{background:#c77c13;color:#fff}[data-theme=dark] .tile-64{background:#d99117;color:#2b1713}[data-theme=dark] .tile-128{background:#e4aa32;color:#2b1713}[data-theme=dark] .tile-256{background:#f3cb67;color:#2b1713}[data-theme=dark] .tile-512{background:#fff0c2;color:#493629}[data-theme=dark] .tile-1024{background:#fff9ed;color:#493629}[data-theme=dark] .tile-2048{background:#fbbf24;color:#493629;box-shadow:0 0 16px rgba(251,191,36,.42)}[data-theme=dark] .tile-super{background:#672f20;color:#fff9ed;box-shadow:0 0 18px rgba(140,64,37,.42)}.einstein-game-layout{display:flex;flex-direction:column;align-items:center;width:100%;margin:0 auto;box-sizing:border-box}.einstein-board-wrapper{width:100%;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:16px;box-sizing:border-box;outline:0!important}#einstein-board:focus,#einstein-board:focus-visible,.einstein-board-wrapper:focus,.einstein-board-wrapper:focus-visible{outline:0!important;box-shadow:none!important}.einstein-hint-banner{padding:10px 14px;background:rgba(56,189,248,.15);border:1px solid #38bdf8;font-size:.95rem;text-align:center;color:var(--text-main)}.einstein-table-container{width:100%;overflow-x:auto;margin:12px 0}.einstein-table{width:100%;border-collapse:separate;border-spacing:6px}.einstein-table td,.einstein-table th{border-radius:8px;padding:8px 10px;text-align:center}.house-head{display:flex;flex-direction:column;align-items:center;gap:2px}.house-roof{font-size:1.4rem}.house-name{font-weight:700;font-size:.95rem;color:var(--text-main)}.row-cat-name{font-weight:600;color:var(--text-muted);text-align:left;min-width:90px}.einstein-cell{min-width:105px;height:48px;cursor:pointer;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;transition:.15s;user-select:none}.einstein-cell:hover{border-color:#38bdf8;transform:translateY(-1px)}.einstein-cell.filled{background:var(--bg-tertiary);font-weight:600;color:var(--text-main)}.einstein-cell.has-error{border-color:#ef4444!important;background:rgba(239,68,68,.15)!important}.placeholder-plus{color:var(--text-muted);opacity:.4;font-size:1.3rem;font-weight:300}.einstein-clues-section{border-top:1px solid var(--border-color)}.einstein-clues-title{font-weight:600;display:flex;align-items:center;gap:8px;margin-bottom:10px;color:var(--text-main);font-size:.95rem}.einstein-clues-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.einstein-clue-item{display:flex;align-items:flex-start;gap:8px;padding:8px 12px;background:var(--bg-secondary);border-radius:6px;cursor:pointer;transition:.15s;font-size:.9rem;border-left:3px solid #38bdf8;color:var(--text-main)}.einstein-clue-item:hover{opacity:.85}.einstein-clue-item.clue-done{opacity:.45;text-decoration:line-through;border-left-color:#22c55e}.clue-checkbox{width:16px;height:16px;border-radius:3px;border:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;font-size:11px;color:#22c55e;flex-shrink:0;margin-top:2px}.einstein-picker-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000}.einstein-picker-card{background:var(--bg-card);border:1px solid var(--border-color);width:90%;max-width:360px;box-shadow:0 12px 32px rgba(0,0,0,.3)}.einstein-picker-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-weight:700;color:var(--text-main)}.einstein-picker-close{background:0 0;border:none;font-size:1.5rem;cursor:pointer;color:var(--text-muted)}.einstein-picker-options{display:flex;flex-direction:column;max-height:280px;overflow-y:auto}.einstein-picker-opt{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-radius:8px;border:1px solid var(--border-color);background:var(--bg-secondary);color:var(--text-main);cursor:pointer;font-size:.95rem;font-weight:500}.einstein-picker-opt:hover{border-color:#38bdf8}.einstein-picker-opt.selected{border-color:#38bdf8;background:rgba(56,189,248,.15);font-weight:700}.opt-badge{font-size:.75rem;padding:2px 6px;border-radius:4px}.opt-badge.current{background:#38bdf8;color:#0f172a}.opt-badge.used{background:var(--bg-tertiary);color:var(--text-muted)}.einstein-picker-footer{margin-top:14px;padding-top:10px;border-top:1px solid var(--border-color);text-align:center}.pathfinding-game-layout{display:flex;flex-direction:column;align-items:center;width:100%;max-width:600px;margin:0 auto;box-sizing:border-box}.pathfinding-board-wrapper{width:100%;max-width:480px;background:0 0!important;border:none!important;padding:8px;box-sizing:border-box;margin-bottom:12px;outline:0!important;display:flex;flex-direction:column;align-items:center}#pathfinding-board:focus,#pathfinding-board:focus-visible,.pathfinding-board-wrapper:focus,.pathfinding-board-wrapper:focus-visible{outline:0!important;box-shadow:none!important;border:none!important}.pathfinding-grid-container{display:grid;gap:4px;width:auto;margin:0 auto;background:0 0!important;border:none!important;box-shadow:none!important;padding:0;box-sizing:border-box}.path-cell{width:var(--cell-size,46px);height:var(--cell-size,46px);min-width:var(--cell-size,46px);min-height:var(--cell-size,46px);max-width:var(--cell-size,46px);max-height:var(--cell-size,46px);border-radius:6px;display:flex;align-items:center;justify-content:center;background:var(--bg-tertiary);border:1px solid var(--border-color);box-sizing:border-box;cursor:pointer;user-select:none;position:relative;overflow:hidden;transition:background-color .12s}[data-theme=dark] .path-cell{background:#30251f;border-color:#624b3a}.cell-wall{background:repeating-linear-gradient(135deg,rgba(255,255,255,.14) 0 3px,transparent 3px 8px),#72573d!important;border-color:#493629!important;box-shadow:inset 0 2px 4px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.08);cursor:default}[data-theme=dark] .cell-wall{background:repeating-linear-gradient(135deg,rgba(255,240,194,.16) 0 3px,transparent 3px 8px),#72573d!important;border-color:#d6b989!important}.cell-player{background:rgba(217,145,23,.24)!important;z-index:2}.cell-hint-next{outline:3px solid var(--accent-amber,#f59e0b);outline-offset:-4px;z-index:3;animation:1s ease-in-out infinite alternate pathHintPulse}@keyframes pathHintPulse{from{filter:brightness(1)}to{filter:brightness(1.22)}}.cell-player .player-avatar{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.cell-player .player-avatar svg{width:82%;height:82%}.cell-gem .gem-token{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.cell-gem .gem-token svg{width:76%;height:76%;animation:2.2s ease-in-out infinite pulseGem}@keyframes pulseGem{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}.cell-exit-locked .exit-token,.cell-exit-open .exit-token{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.cell-exit-locked .exit-token svg,.cell-exit-open .exit-token svg{width:76%;height:76%}.cell-exit-open{animation:1.5s infinite alternate pulseExit}@keyframes pulseExit{from{filter:drop-shadow(0 0 3px #c77c13)}to{filter:drop-shadow(0 0 10px #c77c13)}}.cell-portal{background:rgba(199,124,19,.2)!important;font-weight:700;font-size:.85rem}.portal-vortex{font-weight:800;font-size:.85rem;color:#8c4025}.cell-trail .trail-dot{width:8px;height:8px;border-radius:50%;background:#d99117;opacity:.55}#einstein-board:focus,#game2048-board:focus,#pathfinding-board:focus,.einstein-board-wrapper:focus,.game2048-board-wrapper:focus,.pathfinding-board-wrapper:focus{outline:0!important;border-color:var(--border-color)!important;box-shadow:none!important}.game2048-combo-container{position:absolute;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;pointer-events:none;z-index:100;display:flex;align-items:center;justify-content:center;width:100%}.combo-burst{padding:12px 28px!important;border-radius:30px!important;font-weight:900!important;font-size:1.65rem!important;letter-spacing:.06em!important;text-shadow:0 2px 6px rgba(0,0,0,.4)!important;box-shadow:0 0 30px rgba(245,158,11,.8),0 8px 30px rgba(0,0,0,.35)!important;border:2.5px solid #fff!important;animation:.9s cubic-bezier(.16,1,.3,1) forwards dynomiteComboAnim!important;white-space:nowrap!important}@keyframes dynomiteComboAnim{0%{transform:scale(.2) rotate(-8deg);opacity:0}25%{transform:scale(1.3) rotate(4deg);opacity:1}65%{transform:scale(1.1) rotate(-2deg);opacity:1}100%{transform:scale(1) translateY(-14px);opacity:0}}@keyframes intenseScreenShake{0%{transform:translate(0,0) rotate(0);filter:brightness(1.7) contrast(1.3)}10%{transform:translate(-14px,10px) rotate(-2.5deg)}20%{transform:translate(16px,-12px) rotate(2.5deg);filter:brightness(1.4)}30%{transform:translate(-18px,14px) rotate(-2deg)}40%{transform:translate(14px,-10px) rotate(2deg)}50%{transform:translate(-10px,8px) rotate(-1deg)}60%{transform:translate(10px,-6px) rotate(1deg);filter:brightness(1.2)}75%{transform:translate(-6px,4px) rotate(-.5deg)}100%{transform:translate(0,0) rotate(0);filter:brightness(1)}}.shake-screen-intense{animation:.65s cubic-bezier(.36,.07,.19,.97) both intenseScreenShake!important}.crazy-svg-icon{width:82%!important;height:82%!important;display:block!important;filter:drop-shadow(0 2px 5px rgba(0, 0, 0, .2))!important;transition:transform .15s!important}.crazy-svg-icon:hover{transform:scale(1.08)!important}.game2048-cell.number-special{font-weight:900;cursor:default}@keyframes bombPulseGlow{from{box-shadow:0 0 6px rgba(166,90,55,.38)}to{box-shadow:0 0 18px rgba(166,90,55,.78);transform:scale(1.02)}}.bomb-fuse-spark{animation:.3s infinite alternate fuseSpark!important}@keyframes fuseSpark{from{transform:scale(.8);opacity:.7}to{transform:scale(1.4);opacity:1;filter:drop-shadow(0 0 4px #fbbf24)}}.game2048-cell.number-mul{--impact-color:rgba(140, 64, 37, 0.82)}@keyframes mulShimmer{0%,100%{filter:brightness(1)}50%{filter:brightness(1.2) drop-shadow(0 0 8px rgba(140, 64, 37, .58))}}.game2048-cell.number-div{--impact-color:rgba(199, 124, 19, 0.82)}@keyframes divPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.2) drop-shadow(0 0 8px rgba(199, 124, 19, .58))}}.game2048-cell.number-mystery{animation:1.6s ease-in-out infinite mysteryBob!important;--impact-color:rgba(114, 87, 61, 0.82)}@keyframes mysteryBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px);filter:drop-shadow(0 0 10px rgba(114, 87, 61, .72))}}.game2048-cell.number-wild{animation:1.8s infinite alternate wildGlow!important}@keyframes wildGlow{from{transform:rotate(0)}to{transform:rotate(3deg) scale(1.03);filter:drop-shadow(0 0 12px rgba(245, 158, 11, .9))}}.game2048-cell.number-expiring{border:2px solid #ef4444!important}@keyframes urgentExpire{from{transform:scale(1);filter:brightness(1)}to{transform:scale(1.08);filter:brightness(1.35)}}.game2048-cell .crazy-event,.game2048-cell .crazy-operation{position:absolute;font-size:1.15rem;font-weight:900;pointer-events:none;animation:.7s ease-out forwards popFloat}@keyframes popFloat{0%{transform:translateY(0) scale(.6);opacity:0}30%{transform:translateY(-10px) scale(1.25);opacity:1}100%{transform:translateY(-24px) scale(1);opacity:0}}.crazy-event-bomb{color:#8c4025;font-size:1.6rem!important}.einstein-matrix-container{display:flex;flex-direction:column;gap:8px}.einstein-houses-row{display:grid;grid-template-columns:80px repeat(var(--house-count,5),minmax(90px,1fr));gap:6px;align-items:center}.einstein-house-header{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:6px;text-align:center;font-weight:700;font-size:.9rem;color:var(--text-main);transition:.2s}.einstein-house-header.clue-related{border-color:#f59e0b!important;box-shadow:0 0 8px rgba(245,158,11,.4)}.einstein-cat-row{display:grid;grid-template-columns:80px 1fr;gap:6px;align-items:center}.cat-label{font-weight:600;font-size:.85rem;color:var(--text-muted);text-align:right;padding-right:6px}.cat-slots-row{display:grid;grid-template-columns:repeat(var(--house-count,5),minmax(90px,1fr));gap:6px}.einstein-slot{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;min-height:52px;display:flex;align-items:center;justify-content:center;position:relative;transition:.15s}.einstein-slot.is-filled{background:var(--bg-tertiary)}.einstein-slot.has-conflict{border-color:#ef4444!important;background:rgba(239,68,68,.15)}.conflict-mark{position:absolute;top:2px;right:4px;color:#ef4444;font-weight:900;font-size:14px}.einstein-placed-item{width:100%;height:100%;min-height:48px;background:0 0;border:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px;color:var(--text-main)}.einstein-placed-item.clue-related{border-radius:6px;box-shadow:0 0 10px rgba(245,158,11,.6);border:1.5px solid #f59e0b}.einstein-placed-item .item-icon{display:flex;align-items:center;justify-content:center}.einstein-placed-item .item-name{font-size:.72rem;font-weight:700}.candidates-subgrid{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;padding:4px}.einstein-candidate-btn{padding:0;border:1px solid transparent;background:0 0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .1s,opacity .1s}.einstein-candidate-btn:hover{transform:scale(1.15);background:rgba(255,255,255,.1)}.einstein-candidate-btn.excluded{opacity:.18;filter:grayscale(1);text-decoration:line-through}.einstein-candidate-btn.elsewhere{cursor:not-allowed}.einstein-candidate-btn.clue-related{box-shadow:0 0 6px #f59e0b;border-color:#f59e0b}.einstein-clues-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:8px;max-height:380px;overflow-y:auto;padding-right:4px}.einstein-clue-card{background:var(--bg-secondary);border:1px solid var(--border-color);border-left:3px solid #38bdf8;cursor:pointer;display:flex;flex-direction:column;gap:4px;transition:.15s}.einstein-clue-card:hover{border-color:#38bdf8;transform:translateY(-1px)}.einstein-clue-card.processed{border-left-color:#22c55e!important;opacity:.65}.einstein-clue-card.active-clue{border-color:#f59e0b!important;box-shadow:0 0 10px rgba(245,158,11,.35);opacity:1!important}.clue-card-left{display:flex;align-items:center;gap:8px}.clue-badge-status{width:20px;height:20px;border-radius:50%;background:var(--bg-tertiary);color:var(--text-main);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;flex-shrink:0}.einstein-clue-card.processed .clue-badge-status{background:#22c55e;color:#fff}.clue-visual-row{display:flex;align-items:center;gap:4px;font-size:.85rem;font-weight:700}.clue-icon-badge{display:inline-flex;align-items:center;justify-content:center}.house-badge{font-size:.75rem;background:var(--bg-tertiary);padding:2px 5px;border-radius:4px}.clue-text-body{font-size:.85rem;color:var(--text-main);line-height:1.35}.topbar-btn.exclude-mode{background:rgba(239,68,68,.15)!important;border-color:#ef4444!important}.kakuro-game-layout{display:flex;flex-direction:column;align-items:center;width:100%;max-width:700px;margin:0 auto;box-sizing:border-box}.kakuro-board-wrapper{width:100%;max-width:520px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:16px;box-sizing:border-box;margin-bottom:16px;outline:0!important;display:flex;flex-direction:column;align-items:center}#kakuro-board-wrapper:focus,#kakuro-board:focus{outline:0!important;box-shadow:none!important}.kakuro-grid-container{display:grid;grid-template-columns:repeat(var(--kakuro-size,5),1fr);grid-template-rows:repeat(var(--kakuro-size,5),1fr);gap:2px;background:var(--border-thick);border:2px solid var(--border-thick);border-radius:8px;overflow:hidden;width:100%;max-width:380px;aspect-ratio:1/1;margin:0 auto}.kakuro-cell{position:relative;display:flex;align-items:center;justify-content:center;font-size:1.35rem;font-weight:700;user-select:none;box-sizing:border-box;padding:0;border:none}.kakuro-cell.wall{background:var(--bg-tertiary);background-image:linear-gradient(to top right,transparent calc(50% - 1px),var(--border-color) 50%,transparent calc(50% + 1px))}.kakuro-down{position:absolute;bottom:2px;left:4px;font-size:.72rem;font-weight:800;color:var(--accent-amber)}.kakuro-across{position:absolute;top:2px;right:4px;font-size:.72rem;font-weight:800;color:var(--accent-amber)}.kakuro-cell.digit-cell{background:var(--bg-secondary);color:var(--text-main);cursor:pointer;transition:background-color .12s}.kakuro-cell.digit-cell:hover{background:var(--cell-hover-bg)}.kakuro-cell.digit-cell.selected{background:var(--cell-selected-bg)!important;box-shadow:inset 0 0 0 2px var(--cell-selected-outline)}.kakuro-cell.digit-cell.given{color:var(--text-muted);font-weight:600;cursor:default}.kakuro-cell.digit-cell.wrong{color:var(--cell-conflict-color)!important;background:var(--cell-conflict-bg)!important}.kakuro-keypad{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:14px;width:100%;max-width:380px}.kakuro-key-btn{flex:1 0 calc(20% - 6px);min-width:44px;height:44px;border-radius:8px;border:1px solid var(--border-color);background:var(--bg-secondary);color:var(--text-main);font-size:1.15rem;font-weight:700;cursor:pointer;transition:.12s;display:flex;align-items:center;justify-content:center}.kakuro-key-btn:hover{background:var(--bg-tertiary);border-color:var(--accent-amber);transform:translateY(-1px)}.kakuro-key-btn.clear-btn{background:var(--bg-tertiary);color:var(--accent-red);font-size:.95rem}.kakuro-screen-container{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}.kakuro-status-bar{max-width:520px!important;flex-wrap:wrap}.kakuro-status-instruction{color:var(--text-muted);font-weight:500}.kakuro-status-instruction::after{content:" ·"}.kakuro-hint-card .hint-actions{display:flex;flex-wrap:wrap;gap:8px}.kakuro-hint-card .hint-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}.kakuro-hint-card .hint-actions [hidden]{display:none!important}@media (max-width:540px){.kakuro-board-wrapper{padding:10px}.kakuro-grid-container,.kakuro-keypad{max-width:min(88vw,380px)}.kakuro-key-btn{min-width:38px;height:40px}}.nonogram-game-layout{display:flex;flex-direction:column;align-items:center;width:100%;max-width:600px;margin:0 auto;box-sizing:border-box}.nonogram-board-wrapper{width:100%;max-width:520px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:16px;box-sizing:border-box;margin-bottom:16px;outline:0!important;display:flex;flex-direction:column;align-items:center}#nonogram-board-wrapper:focus,#nonogram-board:focus{outline:0!important;box-shadow:none!important}#game-view-nonogram>.nonogram-game-layout>.nonogram-mode-stat{display:none!important}.nonogram-hint-card{z-index:1200}.nonogram-hint-card .hint-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.nonogram-hint-card .hint-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}.nono-cell.hint-target{outline:3px solid var(--accent-amber,#f59e0b)!important;outline-offset:-2px;animation:1s infinite alternate nono-pulse-hint}@keyframes nono-pulse-hint{from{box-shadow:inset 0 0 0 2px var(--accent-amber,#f59e0b)}to{box-shadow:inset 0 0 8px 3px var(--accent-amber,#f59e0b)}}.nonogram-puzzle-area{--nono-clue-size:46px;display:grid;grid-template-columns:var(--nono-clue-size) minmax(0,1fr);grid-template-rows:var(--nono-clue-size) minmax(0,1fr);gap:4px;width:100%;max-width:min(100%,390px);margin:0 auto;padding-right:var(--nono-clue-size);padding-bottom:var(--nono-clue-size);box-sizing:border-box}.nonogram-corner-spacer{background:0 0}.nonogram-col-clues{display:grid;gap:2px;align-items:end}.nonogram-clue-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;padding-bottom:2px;font-size:.75rem;line-height:1.1;font-weight:700;color:var(--text-muted);transition:color .15s}.nonogram-clue-col.complete{color:#22c55e!important;opacity:.6}.nonogram-row-clues{display:grid;gap:2px;align-items:center}.nonogram-clue-row{display:flex;align-items:center;justify-content:flex-end;padding-right:4px;font-size:.75rem;font-weight:700;color:var(--text-muted);white-space:nowrap;transition:color .15s}.nonogram-clue-row.complete{color:#22c55e!important;opacity:.6}.nonogram-grid-container{display:grid;grid-template-columns:repeat(var(--nono-size,5),1fr);grid-template-rows:repeat(var(--nono-size,5),1fr);gap:2px;background:var(--border-thick,#475569);border:2px solid var(--border-thick,#475569);border-radius:6px;overflow:hidden;aspect-ratio:1/1}.nono-cell{background:var(--bg-secondary,#1e293b);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.1rem;color:#94a3b8;padding:0;transition:background-color .12s}.nono-cell:hover{background:rgba(56,189,248,.18)}.nono-cell.filled,[data-theme=dark] .nono-cell.filled{background:#38bdf8!important}.nono-cell.crossed{color:#ef4444;font-weight:900;font-size:1.2rem}.futoshiki-game-layout{display:flex;flex-direction:column;align-items:center;width:100%;max-width:600px;margin:0 auto;box-sizing:border-box}.futoshiki-main-layout{max-width:1200px;gap:0}.futoshiki-top-bar{margin:18px auto 14px!important;max-width:min(94vw,720px)!important}.futoshiki-top-bar .topbar-btn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:8px!important;border-radius:50%!important}.futoshiki-top-bar .topbar-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.futoshiki-status-text{color:var(--text-muted);font-size:14px;text-align:center;display:flex;flex-wrap:wrap;justify-content:center;gap:0 6px}.futoshiki-status-instruction::after{content:"·";margin-left:6px}.futoshiki-screen{max-width:min(96vw,820px)!important;gap:6px}.futoshiki-board-wrapper{width:100%;max-width:560px;background:0 0;border:0;border-radius:0;padding:4px;box-sizing:border-box;margin-bottom:16px;outline:0!important;display:flex;flex-direction:column;align-items:center}#futoshiki-board-wrapper:focus,#futoshiki-board:focus{outline:0!important;box-shadow:none!important}.futoshiki-hint-banner{padding:8px 14px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;margin:0 auto 4px;font-size:.9rem;text-align:center;color:var(--text-main);width:min(100%,560px);box-sizing:border-box}.futoshiki-hint-card{z-index:1200}.futoshiki-hint-card .hint-actions{display:flex;flex-wrap:wrap;gap:8px}.futoshiki-hint-card .hint-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}.futoshiki-hint-card .hint-actions [hidden]{display:none!important}.futoshiki-hint-card .hint-actions .btn:disabled{opacity:.5;cursor:not-allowed}.futoshiki-hint-card .hint-type-badge{background:var(--hint-badge-type-bg);color:var(--hint-badge-type-color);border:1px solid var(--hint-badge-type-border)}.futoshiki-hint-card .hint-difficulty-badge{background:var(--bg-tertiary);border:1px solid var(--border-color);color:var(--text-main)}.futoshiki-hint-applied{padding:8px 10px;margin-top:2px;border-radius:8px;background:var(--bg-tertiary);color:var(--accent-amber);font-size:.85rem;font-weight:700;text-align:center}.futoshiki-board-container{display:flex;flex-direction:column;gap:4px;margin:8px auto;user-select:none}.futo-row{display:flex;align-items:center;gap:4px}.futo-rel-row{display:flex;align-items:center;gap:4px;height:26px}.futo-cell{width:min(12vw,64px);height:min(12vw,64px);background:var(--bg-secondary);border:1.5px solid var(--border-color);border-radius:8px;color:var(--text-main);font-size:1.35rem;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.12s;box-sizing:border-box}.futo-cell:hover:not(.given){background:var(--cell-hover-bg);border-color:var(--accent-amber)}.futo-cell.selected{background:var(--cell-selected-bg)!important;border-color:var(--cell-selected-outline)!important;box-shadow:0 0 8px var(--cell-selected-outline)}.futo-cell.given{color:var(--text-muted);font-weight:600;cursor:default;background:var(--bg-tertiary)}.futo-cell.wrong{color:var(--cell-conflict-color)!important;background:var(--cell-conflict-bg)!important;border-color:var(--accent-red)!important}.futo-rel-h{width:clamp(24px,5.4vw,32px);height:min(12vw,64px);display:flex;align-items:center;justify-content:center;color:var(--accent-amber,#f59e0b)}.futo-rel-v{width:min(12vw,64px);height:26px;display:flex;align-items:center;justify-content:center;color:var(--accent-amber,#f59e0b)}.futo-rel-spacer{width:clamp(24px,5.4vw,32px);height:26px}.futo-sign-svg{width:clamp(18px,4.5vw,24px);height:clamp(18px,4.5vw,24px);fill:none;stroke:currentColor;stroke-width:3.8;stroke-linecap:round;stroke-linejoin:round;display:block}.futoshiki-keypad{display:grid;grid-template-columns:repeat(5,minmax(42px,1fr));gap:8px;width:min(100%,360px);margin:10px auto 0}.futo-key-btn{min-width:42px;height:52px;border-radius:8px;border:1px solid var(--border-color);background:var(--bg-secondary);color:var(--text-main);font-size:1.15rem;font-weight:700;cursor:pointer;transition:.12s;display:flex;align-items:center;justify-content:center}.futo-key-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.futo-key-btn:hover{background:var(--bg-tertiary);border-color:var(--accent-amber);transform:translateY(-1px)}.futo-key-btn.clear-btn{background:rgba(239,68,68,.12);color:#ef4444;font-size:.95rem}@media (max-width:900px){.futoshiki-status-text{max-width:100%}}@media (max-width:640px){.futoshiki-top-bar{margin:12px auto 8px!important}.futoshiki-screen{padding:8px 4px!important}.futoshiki-keypad{gap:6px}}@keyframes pulseSolutionBadge{0%{transform:scale(.6)}50%{transform:scale(1.25)}100%{transform:scale(1)}}.game2048-cell .tile-val{display:inline-flex;align-items:center;justify-content:center;letter-spacing:-.01em}.game2048-cell[data-digits="1"] .tile-val{font-size:clamp(34px, 10vw, 54px)!important;font-weight:900}.game2048-cell[data-digits="2"] .tile-val{font-size:clamp(28px, 8.2vw, 44px)!important;font-weight:800}.game2048-cell[data-digits="3"] .tile-val{font-weight:800;font-size:clamp(1.6rem, 34cqi, 2.4rem)!important}.game2048-cell[data-digits="4"] .tile-val{font-weight:800;letter-spacing:-.02em;font-size:clamp(1.3rem, 26cqi, 1.9rem)!important}.game2048-cell[data-digits="5"] .tile-val{font-weight:700;letter-spacing:-.03em}.game2048-cell[data-digits="6"] .tile-val{font-weight:700;letter-spacing:-.04em}.game2048-cell[data-digits="7"] .tile-val{font-weight:700;letter-spacing:-.05em}.game2048-cell[data-digits="8"] .tile-val{font-weight:700;letter-spacing:-.06em}.game2048-cell[data-digits="10"] .tile-val,.game2048-cell[data-digits="9"] .tile-val{font-weight:700;letter-spacing:-.07em}.combo-burst.dynomite-combo{font-size:1.25rem!important;letter-spacing:.08em!important;box-shadow:0 0 24px rgba(239,68,68,.75),0 0 40px rgba(245,158,11,.5)!important;animation:.9s ease-out forwards dynomiteShake!important}@keyframes dynomiteShake{0%{transform:scale(.4) rotate(0);opacity:0}20%{transform:scale(1.3) rotate(-3deg);opacity:1}35%{transform:scale(1.2) rotate(3deg)}50%{transform:scale(1.25) rotate(-2deg)}65%{transform:scale(1.15) rotate(1deg)}80%{transform:scale(1.1) rotate(0)}100%{transform:scale(1.05) translateY(-20px);opacity:0}}@keyframes bombPulse{0%,100%{box-shadow:0 0 8px rgba(239,68,68,.6),inset 0 0 10px rgba(239,68,68,.4);transform:scale(1)}50%{box-shadow:0 0 20px rgba(239,68,68,.9),inset 0 0 16px rgba(255,255,255,.3);transform:scale(1.03)}from{box-shadow:0 0 8px rgba(239,68,68,.4);transform:scale(1)}to{box-shadow:0 0 18px rgba(239,68,68,.85);transform:scale(1.03)}}.game2048-cell.number-mul{position:relative;box-shadow:0 0 12px rgba(16,185,129,.5)}@keyframes mulAura{from{filter:drop-shadow(0 0 4px #10b981)}to{filter:drop-shadow(0 0 12px #34d399)}}.game2048-cell.number-div{box-shadow:0 0 12px rgba(6,182,212,.5)}@keyframes mysteryWobble{0%,100%{transform:scale(1) rotate(0)}25%{transform:scale(1.04) rotate(-3deg)}75%{transform:scale(1.04) rotate(3deg)}}@keyframes wildGlow{0%{transform:scale(1);box-shadow:0 0 8px rgba(245,158,11,.4)}100%{transform:scale(1.05);box-shadow:0 0 22px rgba(245,158,11,.85)}}.game2048-cell.number-expiring{animation:.4s linear infinite franticShake!important}@keyframes franticShake{0%,100%{transform:translate(0,0);filter:brightness(1)}25%{transform:translate(-2px,1px);filter:brightness(1.3)}50%{transform:translate(2px,-1px);filter:brightness(1)}75%{transform:translate(-1px,-2px);filter:brightness(1.3)}}button[data-solution-progress]{position:relative!important;background:linear-gradient(to top,var(--accent-amber,#f59e0b) var(--solution-fill,0),var(--btn-bg,var(--bg-tertiary)) var(--solution-fill,0))!important;color:var(--text-main)!important;transition:transform 80ms!important;transform:scale(1.08)!important}.game2048-cell{container-type:inline-size;overflow:hidden!important;position:relative}.game2048-cell .tile-val{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;text-align:center!important;line-height:1!important;font-weight:900!important;font-size:clamp(2rem, 42cqi, 3rem)!important}.game2048-cell.number-value-5 .tile-val,.game2048-cell[data-digits="5"] .tile-val{font-size:clamp(1.05rem, 20cqi, 1.55rem)!important;letter-spacing:-.02em!important}.game2048-cell.number-value-6 .tile-val,.game2048-cell[data-digits="6"] .tile-val{font-size:clamp(.85rem, 16.5cqi, 1.3rem)!important;letter-spacing:-.03em!important}.game2048-cell.number-value-7 .tile-val,.game2048-cell[data-digits="7"] .tile-val{font-size:clamp(.72rem, 14cqi, 1.1rem)!important;letter-spacing:-.04em!important}.game2048-cell.number-value-8 .tile-val,.game2048-cell[data-digits="8"] .tile-val{font-size:clamp(.62rem, 12cqi, .95rem)!important;letter-spacing:-.05em!important}.game2048-cell.number-value-9plus .tile-val,.game2048-cell[data-digits="10"] .tile-val,.game2048-cell[data-digits="9"] .tile-val{font-size:clamp(.52rem, 10cqi, .82rem)!important;letter-spacing:-.06em!important}.game-dpad,.game2048-dpad,.maze-dpad,.pathfinding-dpad,.sokoban-dpad{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:12px!important;margin:16px auto 10px!important;width:100%!important;max-width:440px!important;flex-wrap:nowrap!important;user-select:none!important}.game-dpad .dpad-center,.game-dpad .dpad-middle,.game-dpad .dpad-row{display:contents!important}.dpad-btn,.game-dpad .dpad-btn{width:68px!important;height:44px!important;min-width:56px!important;min-height:44px!important;border-radius:10px!important;background:var(--bg-tertiary)!important;border:1.5px solid var(--border-color)!important;color:var(--text-main)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;touch-action:manipulation!important;transition:.12s!important;box-shadow:0 2px 6px rgba(0,0,0,.1)!important;padding:0!important}.dpad-btn:hover,.game-dpad .dpad-btn:hover{background:var(--btn-hover-bg)!important;border-color:var(--accent-amber)!important;color:var(--accent-amber)!important;transform:translateY(-1px)!important}.dpad-btn:active,.game-dpad .dpad-btn:active{transform:scale(.94)!important;background:var(--accent-amber)!important;color:#fff!important}@keyframes pulseBadge{0%{transform:scale(.6)}50%{transform:scale(1.25)}100%{transform:scale(1)}}.game2048-cell .tile-val{display:flex;align-items:center;justify-content:center;user-select:none;white-space:nowrap}.game2048-cell.d-1 .tile-val{font-size:min(13vw, 46px)!important;font-weight:900!important}.game2048-cell.d-2 .tile-val{font-size:min(10.5vw, 38px)!important;font-weight:900!important}.game2048-cell.d-3 .tile-val{font-size:min(8.2vw, 30px)!important;font-weight:800!important}.game2048-cell.d-4 .tile-val{font-size:min(6.5vw, 23px)!important;font-weight:800!important}.game2048-cell.d-5 .tile-val{font-size:min(5.4vw, 19px)!important;font-weight:800!important;letter-spacing:-.02em!important}.game2048-cell.d-6 .tile-val{font-size:min(4.6vw, 16px)!important;font-weight:800!important;letter-spacing:-.03em!important}.game2048-cell.d-long .tile-val{font-size:min(3.8vw, 13px)!important;font-weight:800!important;letter-spacing:-.04em!important}.dynomite-combo-burst{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(135deg,#f59e0b 0,#ea580c 100%);color:#fff;padding:8px 18px;border-radius:24px;box-shadow:0 4px 20px rgba(234,88,12,.6),0 0 0 2px rgba(255,255,255,.4);animation:.85s cubic-bezier(.175,.885,.32,1.275) forwards dynomiteBoom;pointer-events:none;user-select:none}.dynomite-combo-burst.is-dynomite{background:linear-gradient(135deg,#ef4444 0,#b91c1c 100%)!important;box-shadow:0 6px 28px rgba(239,68,68,.8),0 0 0 3px #fef08a!important;animation:.95s cubic-bezier(.175,.885,.32,1.275) forwards dynomiteSuperBoom!important}.dynomite-title{font-size:1.25rem;font-weight:900;letter-spacing:.06em;text-shadow:0 2px 4px rgba(0,0,0,.4);white-space:nowrap}.dynomite-bonus{font-size:.85rem;font-weight:800;background:rgba(0,0,0,.25);padding:2px 8px;border-radius:12px}@keyframes dynomiteBoom{0%{transform:scale(.3) rotate(-6deg);opacity:0}30%{transform:scale(1.25) rotate(3deg);opacity:1}60%{transform:scale(1.05) rotate(-2deg)}100%{transform:scale(1) translateY(-24px);opacity:0}}@keyframes dynomiteSuperBoom{0%{transform:scale(.3) rotate(-10deg);opacity:0}25%{transform:scale(1.4) rotate(6deg);opacity:1}50%{transform:scale(1.15) rotate(-4deg)}100%{transform:scale(1) translateY(-30px);opacity:0}}.game2048-cell.number-bomb{position:relative;box-shadow:0 0 12px rgba(239,68,68,.5)!important}.game2048-cell.number-mul{box-shadow:0 0 10px rgba(16,185,129,.5)!important}@keyframes mulGlow{from{border:2px solid transparent}to{border:2px solid #6ee7b7;box-shadow:0 0 16px rgba(16,185,129,.7)}}.game2048-cell.number-div{box-shadow:0 0 10px rgba(6,182,212,.5)!important}@keyframes divPulse{from{filter:drop-shadow(0 0 3px #06b6d4);border:2px solid transparent}to{filter:drop-shadow(0 0 10px #67e8f9);border:2px solid #67e8f9;box-shadow:0 0 16px rgba(6,182,212,.7)}}.game2048-cell.number-mystery{box-shadow:0 0 12px rgba(139,92,246,.5)!important}@keyframes mysteryFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px) scale(1.04)}}.game2048-cell.number-wild{box-shadow:0 0 14px rgba(245,158,11,.6)!important}#game-view-game2048{--combo-bg:linear-gradient(135deg, #8b4513, #d97706);--combo-text:#fff8ed;--combo-border:#fbbf24;--combo-glow:rgba(248, 168, 29, 0.55);--g2048-board:#241b18;--g2048-grid:#30241c;--g2048-empty:#493629;--g2048-border:#5a4031}#game-view-game2048 .combo-burst{background:var(--combo-bg)!important;color:var(--combo-text)!important;border-color:var(--combo-border)!important;text-shadow:none!important;box-shadow:0 0 24px var(--combo-glow),0 8px 20px rgba(0,0,0,.18)!important;max-width:calc(100vw - 36px);white-space:normal!important;text-align:center}.game2048-cell.crazy-impact-div,.game2048-cell.crazy-impact-mul{z-index:2;animation:.8s ease-out both crazyCalculationImpact!important}.game2048-cell.crazy-impact-mul{--impact-color:rgba(140, 64, 37, 0.85)}.game2048-cell.crazy-impact-div{--impact-color:rgba(199, 124, 19, 0.85)}.game2048-cell.crazy-impact-div::after,.game2048-cell.crazy-impact-mul::after{content:'';position:absolute;inset:3px;border:4px solid var(--impact-color);border-radius:inherit;pointer-events:none;animation:.8s ease-out both crazyCalculationRing}.game2048-cell.crazy-impact-div .crazy-operation,.game2048-cell.crazy-impact-mul .crazy-operation{z-index:3;color:#fff;background:#672f20;border:2px solid #fff;border-radius:999px;padding:4px 9px;font-size:1.35rem;text-shadow:0 1px 2px #000;box-shadow:0 4px 16px var(--impact-color)}.game2048-cell.crazy-impact-div .crazy-operation{background:#8c4025}@keyframes crazyCalculationImpact{0%{transform:scale(.85);filter:brightness(1)}24%{transform:scale(1.18);filter:brightness(1.8);box-shadow:0 0 30px var(--impact-color)}55%{transform:scale(.96);filter:brightness(1.3)}100%{transform:scale(1);filter:brightness(1)}}@keyframes crazyCalculationRing{0%{transform:scale(.7);opacity:0}25%{opacity:1}100%{transform:scale(1.55);opacity:0}}@media (prefers-reduced-motion:reduce){#game-view-game2048 .combo-burst,.game2048-cell.crazy-impact-div,.game2048-cell.crazy-impact-div::after,.game2048-cell.crazy-impact-mul,.game2048-cell.crazy-impact-mul::after{animation:none!important}}@keyframes wildSpin{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}.btn.solution-gating,.topbar-btn.solution-gating,button.solution-gating{position:relative!important;overflow:hidden!important}.btn.solution-gating::before,.topbar-btn.solution-gating::before,button.solution-gating::before{content:''!important;position:absolute!important;bottom:0!important;left:0!important;right:0!important;height:var(--solution-fill,0%)!important;background:rgba(245,158,11,.45)!important;pointer-events:none!important;transition:height .12s ease-out!important;z-index:1!important}.btn.solution-gating>*,.topbar-btn.solution-gating>*,button.solution-gating>*{position:relative!important;z-index:2!important}.cell-cross-layer{position:absolute;top:6%;left:6%;width:88%;height:88%;pointer-events:none;display:none;z-index:3}.cell-cross-layer svg{width:100%;height:100%;display:block;overflow:visible}#btn-show-solution{position:relative;overflow:hidden}#btn-show-solution::after{content:'';position:absolute;bottom:0;left:0;height:3.5px;width:var(--solution-progress,0%);background:var(--accent-red,#ef4444);transition:width .15s}html[data-theme] .nim-screen-container .nim-board-container{background:0 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:6px 0!important}html[data-theme] .nim-pile-row{background:0 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;cursor:default!important}html[data-theme] .nim-piles-list{gap:12px!important}html[data-theme] .nim-rule-card{width:min(96vw,920px);margin:0 auto 12px;padding:10px 16px;border:1px solid var(--border-color);border-radius:8px;background:var(--bg-secondary);color:var(--text-muted);text-align:center;font-size:.9rem;line-height:1.45}.nim-rule-stat{display:none!important}html[data-theme] .nim-pile-row{display:block!important;min-height:78px!important;padding:0!important}html[data-theme] .nim-pebbles-wrapper{min-height:58px!important;justify-content:center!important;padding:0!important}html[data-theme] .nim-pile-row.empty-pile{display:block!important}html[data-theme] .nim-ground-line{display:block;width:100%;height:14px;overflow:visible;color:var(--border-color)}html[data-theme] .nim-ground-line path{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}html[data-theme] .nim-pebble,html[data-theme] .nim-pebble:focus{color:var(--accent-amber)!important}html[data-theme] .nim-pebble.hover-take,html[data-theme] .nim-pebble.selected,html[data-theme] .nim-pebble:hover{color:var(--text-main)!important}html[data-theme] .nim-pebble.hinted{color:var(--accent-amber)!important}html[data-theme] .nim-turn-badge.ai-turn,html[data-theme] .nim-turn-badge.player-turn,html[data-theme] .nim-turn-badge.player2-turn{background:var(--bg-tertiary)!important;color:var(--accent-amber)!important;border:1px solid var(--border-color)!important}.nim-game-layout{max-width:min(94vw,820px)!important}.nim-screen-container,.nim-top-bar{max-width:min(94vw,760px)!important}.nim-rule-card{width:min(94vw,760px)!important}.nim-pebble:nth-of-type(4n+1) .pebble-svg{transform:scale(.86)}.nim-pebble:nth-of-type(4n+2) .pebble-svg{transform:scale(1.02)}.nim-pebble:nth-of-type(4n+3) .pebble-svg{transform:scale(1.13)}.nim-pebble:nth-of-type(4n) .pebble-svg{transform:scale(.94,.84)}@media (max-width:640px){.nim-game-layout{max-width:100vw!important}.nim-screen-container,.nim-top-bar{width:min(96vw,560px)!important;max-width:min(96vw,560px)!important}.nim-rule-card{display:none!important}html[data-theme] .nim-pile-row{min-height:72px!important}html[data-theme] .nim-pebbles-wrapper{min-height:52px!important}}.einstein-game-layout{max-width:1240px!important;--einstein-accent:#fbbf24;--einstein-success:#34d399;--einstein-danger:#f87171}.einstein-top-bar{max-width:min(96vw,1040px)!important}.einstein-top-bar .topbar-btn:hover:not(:disabled){border-color:var(--einstein-accent)!important;color:var(--einstein-accent)!important}.einstein-top-bar .topbar-btn.exclude-mode{background:color-mix(in srgb,var(--einstein-danger) 12%,var(--bg-secondary))!important;border-color:var(--einstein-danger)!important;color:var(--einstein-danger)!important}.einstein-board-wrapper{max-width:min(96vw,1160px)!important;gap:10px;margin:0 auto!important}.einstein-status-bar{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 4px!important;min-height:28px!important;color:var(--text-muted)!important;font-size:.82rem!important}.einstein-status-mode,.einstein-status-progress{display:inline-flex;align-items:center;min-height:26px;padding:3px 10px;border-radius:999px;background:var(--bg-tertiary);color:var(--text-main)}.einstein-status-mode{color:var(--einstein-accent)!important}.einstein-status-progress b{margin-left:4px;color:var(--einstein-accent)!important}.einstein-hint-banner{width:100%;box-sizing:border-box;margin:0!important;background:color-mix(in srgb,var(--einstein-accent) 10%,var(--bg-secondary))!important;border:1px solid color-mix(in srgb,var(--einstein-accent) 45%,var(--border-color))!important;border-radius:10px!important;color:var(--text-main)!important}.einstein-matrix-container{align-self:stretch;width:100%;margin:4px 0 8px!important;padding-bottom:4px;overflow-x:auto;overscroll-behavior-x:contain}.einstein-matrix-container>.einstein-cat-row,.einstein-matrix-container>.einstein-houses-row{min-width:550px}.einstein-houses-row{grid-template-columns:70px repeat(var(--house-count,5),minmax(76px,1fr))!important}.einstein-cat-row{grid-template-columns:70px minmax(0,1fr)!important}.einstein-candidate-btn.clue-related,.einstein-clue-card.active-clue,.einstein-house-header.clue-related,.einstein-placed-item.clue-related{border-color:var(--einstein-accent)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--einstein-accent) 25%,transparent)}.einstein-slot.has-conflict{border-color:var(--einstein-danger)!important;background:color-mix(in srgb,var(--einstein-danger) 12%,var(--bg-secondary))!important}.conflict-mark{color:var(--einstein-danger)!important}.einstein-clues-section{align-self:stretch;width:100%;margin:4px 0 0!important;padding-top:8px!important;border-color:var(--border-color)!important}.einstein-clues-title{color:var(--text-main)!important}.einstein-clues-title svg{color:var(--accent-amber)}.einstein-clues-list{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:stretch;gap:5px;max-height:min(440px,52vh)}.einstein-clue-card{background:var(--bg-secondary)!important;border-color:var(--border-color)!important;border-left:3px solid var(--accent-blue)!important;border-radius:9px!important;color:var(--text-main)!important}.einstein-clue-card:hover{border-color:var(--einstein-accent)!important}.einstein-clue-card.processed{border-left-color:var(--einstein-success)!important;opacity:.82!important}.einstein-clue-card.active-clue{border-left-color:var(--einstein-accent)!important}.einstein-clue-card.processed .clue-badge-status{background:color-mix(in srgb,var(--einstein-success) 16%,var(--bg-secondary))!important;border:1px solid var(--einstein-success);color:var(--einstein-success)!important}.einstein-candidate-btn{border-radius:50%!important;color:var(--text-main)!important}.einstein-candidate-btn:hover{background:var(--bg-tertiary)!important}.einstein-candidate-btn.excluded{opacity:.55!important}.einstein-candidate-btn.elsewhere{opacity:.35!important}.einstein-candidate-btn.clue-related{border-radius:50%!important}.house-num{display:inline-flex;align-items:center;justify-content:center;gap:4px}.house-num svg{color:var(--einstein-accent);flex-shrink:0}@media (max-width:640px){#game-view-einstein,.einstein-board-wrapper,.einstein-clues-section,.einstein-game-layout,.einstein-matrix-container{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow-x:hidden!important}.einstein-game-layout{padding:6px 4px 18px!important}.einstein-top-bar{width:100%!important;max-width:100%!important;margin:4px auto 6px!important;padding:4px 6px!important;box-sizing:border-box!important}.einstein-board-wrapper{width:100%!important;max-width:100%!important;border:none!important;border-radius:0!important;background:0 0!important;box-shadow:none!important;padding:2px 0!important;margin:0!important;gap:6px!important}.mobile-game-stats{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:5px!important;width:100%!important;margin:2px 0 6px!important;box-sizing:border-box!important}#game-view-einstein .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:2px 0 6px!important;box-sizing:border-box!important}#game-view-einstein .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 7px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}#game-view-einstein .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}#game-view-einstein .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}#game-view-einstein .mobile-game-stats .stat-num,#game-view-einstein .mobile-game-stats .timer-digits{grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}.einstein-status-bar{display:none!important}.einstein-matrix-container{overflow-x:hidden!important;width:100%!important;max-width:100%!important;margin:4px 0!important;padding:0!important;box-sizing:border-box!important}.einstein-matrix-container>.einstein-cat-row,.einstein-matrix-container>.einstein-houses-row{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;gap:3px!important}.einstein-houses-row{display:grid!important;grid-template-columns:28px repeat(var(--house-count,5),minmax(0,1fr))!important;gap:3px!important;width:100%!important;box-sizing:border-box!important;align-items:center!important}.einstein-house-spacer{min-width:0!important;width:28px!important;max-width:28px!important}.einstein-house-header{min-width:0!important;width:100%!important;padding:2px 0!important;box-sizing:border-box!important;border-radius:6px!important}.einstein-house-header .house-num svg{width:28px!important;height:28px!important}.einstein-cat-row{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:3px!important;width:100%!important;box-sizing:border-box!important;align-items:center!important}.cat-label,.einstein-cat-row .cat-label{min-width:0!important;width:28px!important;max-width:28px!important;min-height:48px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}.cat-label svg,.einstein-cat-row .cat-label svg{width:18px!important;height:18px!important}.cat-slots-row{display:grid!important;grid-template-columns:repeat(var(--house-count,5),minmax(0,1fr))!important;gap:3px!important;width:100%!important;box-sizing:border-box!important}.einstein-slot{min-width:0!important;width:100%!important;min-height:48px!important;max-height:52px!important;padding:2px!important;border-radius:6px!important;box-sizing:border-box!important}.einstein-placed-item .item-icon{width:26px!important;height:26px!important}.einstein-placed-item .item-icon svg{width:24px!important;height:24px!important}.candidates-subgrid{gap:2px!important;padding:1px!important;width:100%!important;justify-content:center!important}.einstein-candidate-btn{width:19px!important;height:19px!important;border-radius:3px!important;padding:0!important}.einstein-candidate-btn svg{width:15px!important;height:15px!important}.einstein-clues-section{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow-x:hidden!important;margin:4px 0 0!important;padding-top:4px!important}.einstein-clues-list{width:100%!important;max-width:100%!important;box-sizing:border-box!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;max-height:38vh!important;padding-right:2px!important}@media (min-width:440px){.einstein-clues-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.einstein-clues-title{font-size:.84rem!important;margin-bottom:4px!important}.einstein-clue-card{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:3px 5px!important;min-height:34px!important}.einstein-clue-card .clue-card-left{gap:4px!important;justify-content:flex-start!important}.einstein-clue-card .clue-visual-row{gap:2px!important;flex-wrap:nowrap!important}.einstein-clue-card .clue-icon-badge{width:22px!important;height:22px!important}.einstein-clue-card .clue-icon-badge svg{width:20px!important;height:20px!important}.einstein-clue-card .clue-text{font-size:11px!important;word-break:break-word!important;overflow-wrap:break-word!important}}.einstein-house-spacer{min-width:70px;min-height:1px}.einstein-house-header .house-num svg{width:38px;height:38px}.einstein-cat-row .cat-label{display:grid;place-items:center;width:100%;min-height:44px;padding:0;color:var(--einstein-accent);cursor:help}.einstein-cat-row .cat-label svg{width:32px;height:32px}.einstein-placed-item .item-icon,.einstein-placed-item .item-icon svg{width:42px;height:42px}.einstein-candidate-btn{width:34px!important;height:34px!important}.einstein-candidate-btn svg{width:28px;height:28px}.clue-icon-badge{width:24px;height:24px;flex-shrink:0}.clue-icon-badge svg{width:22px;height:22px}.einstein-clue-card{align-items:center;justify-content:center;min-height:38px;padding:3px 5px;box-sizing:border-box}.einstein-clue-card .clue-card-left{width:100%;justify-content:center;align-items:center;gap:4px}.einstein-clue-card .clue-visual-row{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:2.5px}.einstein-clue-card .clue-rel-symbol,.einstein-clue-card .clue-visual-row>b{display:inline-flex;align-items:center;justify-content:center;min-width:12px;padding:0 1px;color:var(--einstein-accent);font-size:1.05rem;line-height:1;font-weight:800;flex-shrink:0}.einstein-clue-card .clue-icon-badge[title]{cursor:help}.einstein-clue-card.clue-dual-rel{padding:2px 4px!important}.einstein-clue-card.clue-dual-rel .clue-card-left{gap:2.5px!important}.einstein-clue-card.clue-dual-rel .clue-badge-status{width:16px!important;height:16px!important;font-size:.65rem!important}.einstein-clue-card.clue-dual-rel .clue-visual-row{gap:1px!important;flex-wrap:nowrap!important}.einstein-clue-card.clue-dual-rel .clue-icon-badge{width:20px!important;height:20px!important}.einstein-clue-card.clue-dual-rel .clue-icon-badge svg{width:18px!important;height:18px!important}.einstein-clue-card.clue-dual-rel .clue-rel-symbol,.einstein-clue-card.clue-dual-rel .clue-visual-row>b{min-width:8px!important;font-size:.88rem!important;padding:0!important;margin:0!important}.einstein-hint-card{z-index:1200}.einstein-hint-card .hint-type-badge{background:var(--hint-badge-type-bg);color:var(--hint-badge-type-color);border:1px solid var(--hint-badge-type-border)}.einstein-hint-card .hint-difficulty-badge{background:var(--bg-tertiary);border:1px solid var(--border-color);color:var(--text-main)}.einstein-hint-visual{display:flex;align-items:center;justify-content:center;gap:14px;min-height:62px;margin:0 0 10px}.einstein-hint-visual>svg{width:42px;height:42px}.einstein-hint-visual .einstein-hint-arrow{width:24px;height:24px;color:var(--einstein-accent)}.einstein-hint-visual .einstein-hint-arrow path{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.einstein-hint-sources{display:grid;gap:6px;max-height:min(28vh,220px);overflow:auto;margin:0 0 12px;padding:8px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-secondary)}.einstein-hint-sources[hidden]{display:none!important}.einstein-hint-source{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px;align-items:start;color:var(--text-main);font-size:.88rem;line-height:1.4}.einstein-hint-source strong{color:var(--einstein-accent)}.einstein-hint-card .hint-actions{display:flex;flex-wrap:wrap;gap:8px}.einstein-hint-card .hint-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.einstein-hint-card .hint-actions button[hidden]{display:none!important}.mobile-action-row,.mobile-brand-chevron,.mobile-drawing-row,.mobile-game-stats,.mobile-header-actions,.mobile-header-backdrop,.mobile-menu-toggle,.mobile-mode-row{display:none}@media (max-width:640px){.app-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px 6px!important;height:48px!important;min-height:48px!important;max-height:48px!important;box-sizing:border-box!important;align-items:center!important;position:relative!important;z-index:1000!important;grid-template-columns:minmax(0,1fr) auto!important;padding:6px 8px!important}.app-header .header-controls,.app-header>.header-right-group,.app-header>.logo-area{display:contents!important}.app-header .logo-area>a{grid-column:1;grid-row:1;gap:4px!important;grid-column:1;grid-row:1}.app-header .logo-icon-svg{width:26px!important;height:26px!important}.app-header .logo-title{font-size:15px!important}.app-header #game-menu-container{grid-column:2;grid-row:1;min-width:0;justify-self:center;max-width:100%}.app-header #btn-game-menu{min-width:0;max-width:100%;height:36px;padding:4px 8px;gap:4px;font-size:12px}.app-header #active-game-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-header .game-icon-mini{display:none}.mobile-header-actions{display:flex;grid-column:3;grid-row:1;gap:4px}.mobile-header-actions #btn-theme-cycle{width:34px!important;min-width:34px!important}.mobile-header-actions #btn-language-toggle{width:38px!important;min-width:38px!important;padding:0!important}.mobile-header-actions #btn-language-toggle svg{display:none}#header-row-divider{display:none!important}.app-header .game-controls-container{grid-column:1/-1;grid-row:2;display:flex!important;justify-content:space-between!important;align-items:center!important;width:100%!important;max-width:none!important;flex-wrap:nowrap!important;gap:8px!important;margin:0!important;padding:0!important}.app-header .game-controls-container>:not(.header-nav-btn):not(.header-level-select):not(.diff-select-group){display:none!important}.app-header .game-controls-container .header-nav-btn{flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;order:unset!important}.app-header .game-controls-container .diff-select-group,.app-header .game-controls-container .select-input{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;order:unset!important}.app-header .diff-select-group #difficulty-select{width:100%!important;height:38px!important;padding-left:6px!important;font-size:13px!important}#btn-sudoku-next-diff,#btn-sudoku-prev-diff{display:inline-flex!important}.app-header #game-menu-dropdown{position:fixed!important;top:48px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:calc(100vw - 16px)!important;max-width:520px!important;max-height:calc(100dvh - 60px)!important}#game-view-sudoku .main-layout{display:flex!important;flex-direction:column!important;padding:8px!important;gap:8px!important}#game-view-sudoku .board-column{gap:0!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}#game-view-sudoku .board-wrapper{margin-top:0!important;margin-bottom:8px!important}#game-view-sudoku .action-buttons-row,#game-view-sudoku .eraser-tools-group,#game-view-sudoku .mode-segmented-bar,#game-view-sudoku .mode-segmented-bar-2{display:none!important}#game-view-sudoku .controls-column{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:6px!important}#game-view-sudoku .keypad-grid{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:4px!important;width:100%!important}#game-view-sudoku .keypad-grid .key-btn{min-width:0!important;width:100%!important;height:46px!important;padding:0!important;aspect-ratio:auto!important;font-size:22px!important}#game-view-sudoku .sudoku-actions-bar{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:4px!important;width:100%!important}#game-view-sudoku .sudoku-action-btn{height:42px!important;min-width:0!important;padding:0!important}#game-view-sudoku .sudoku-action-btn svg{width:18px!important;height:18px!important}#game-view-sudoku .drawing-tools-bar{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;width:100%!important}#game-view-sudoku .drawing-tools-bar .mode-btn{height:38px!important;min-width:0!important;padding:0!important}#game-view-sudoku .drawing-tools-bar .mode-btn svg{width:18px!important;height:18px!important}#game-view-sudoku .sudoku-drawing-panel{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:2px;padding:6px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;box-sizing:border-box}.game-view .unified-game-layout{padding:8px 8px 20px!important}.game-view .game-shared-top-bar{width:fit-content!important;max-width:100%!important;box-sizing:border-box;margin:0 auto 6px!important;padding:4px 6px!important;gap:4px!important;border-radius:10px!important}.game-shared-top-bar .topbar-group{gap:4px!important}.game-shared-top-bar .topbar-group:not(:has(> *)){display:none!important}.game-shared-top-bar #btn-sound-toggle{width:36px!important;min-width:36px!important;height:36px!important;margin:0!important}.mobile-game-stats{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;width:100%;margin:0 0 8px}.mobile-game-stats .game-timer,.mobile-game-stats .topbar-stat{min-height:34px;box-sizing:border-box}.mobile-game-stats .game2048-score-card{flex:1 1 0;min-width:0}.game2048-score-strip:not(:has(.game2048-score-card)){display:none!important}body,body :not(input):not(textarea):not([contenteditable=true]){-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none}[contenteditable=true],input,textarea{-webkit-user-select:text!important;user-select:text!important}.app-header .logo-title,.app-header .mobile-brand-chevron{display:none!important}.mobile-menu-toggle{grid-column:2;grid-row:1;display:flex;width:38px;height:38px;padding:9px;flex-direction:column;justify-content:space-around;align-items:center;border:1px solid var(--border-color);border-radius:9px;background:var(--btn-bg);color:var(--btn-text)}.mobile-menu-toggle span{display:block;width:19px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s}.header-expanded .mobile-menu-toggle span:first-child{transform:translateY(6px) rotate(45deg)}.header-expanded .mobile-menu-toggle span:nth-child(2){opacity:0}.header-expanded .mobile-menu-toggle span:last-child{transform:translateY(-6px) rotate(-45deg)}.app-header:not(.header-expanded) #game-menu-container,.app-header:not(.header-expanded) .game-controls-container,.app-header:not(.header-expanded) .mobile-header-actions{display:none!important}.app-header.header-expanded #game-menu-container{grid-column:1/-1;grid-row:2;justify-self:stretch;width:100%}.app-header.header-expanded .mobile-header-actions{grid-column:1/-1;grid-row:3;justify-content:center}.app-header.header-expanded .game-controls-container{grid-row:4}#game-view-sudoku .main-layout,.game-view .unified-game-layout{padding-left:4px!important;padding-right:4px!important}#sudoku-top-bar{width:100%!important;max-width:none!important}#game-view-sudoku .board-wrapper,#game-view-sudoku .sudoku-board{width:min(calc(100vw - 8px),var(--board-max-width))!important;max-width:100%!important}.mobile-mode-row{grid-template-columns:repeat(7,minmax(0,1fr))}.mobile-mode-row>.mode-btn[data-mode=arrow],.mobile-mode-row>.mode-btn[data-mode=circle],.mobile-mode-row>.mode-btn[data-mode=cross],.mobile-mode-row>.mode-btn[data-mode=dashed-arrow],.mobile-mode-row>.mode-btn[data-mode=normal],.mobile-mode-row>.mode-btn[data-mode=notes]{display:none!important}.mobile-mode-row .mobile-cycle{display:inline-flex!important;align-items:center;justify-content:center}.mobile-action-row>#btn-hint{background:var(--btn-bg)!important;border-color:var(--btn-border)!important;color:var(--btn-text)!important;box-shadow:var(--key-shadow)!important}.mobile-action-row>#btn-hint.active{background:var(--btn-hint-bg)!important;border-color:var(--btn-hint-border)!important;color:var(--btn-hint-text)!important}.mobile-game-stats>*{flex:1 1 0!important;min-width:0!important;min-height:38px!important;border-radius:8px!important;box-sizing:border-box!important}.mobile-game-stats .game-timer,.mobile-game-stats .game2048-score-card,.mobile-game-stats .topbar-stat{display:flex!important;align-items:center!important;justify-content:center!important;padding:5px 6px!important;margin:0!important}}#btn-apply-hint[hidden]{display:none!important}@media (min-width:641px){html:not(.force-mobile-layout) .mobile-header-backdrop,html:not(.force-mobile-layout) .mobile-menu-toggle{display:none!important}}.mobile-header-backdrop{display:none;position:fixed;top:48px;left:0;right:0;bottom:0;background:rgba(0,0,0,.32);z-index:998;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}.mobile-header-backdrop.active{display:block}.mobile-stat-label{display:none}@media (max-width:640px){.mobile-game-stats>*{background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;box-shadow:none!important;font-size:12px!important}.mobile-game-stats .game2048-score-card{flex-direction:row!important;gap:5px!important}.app-header,.app-header.header-expanded{grid-template-columns:28px minmax(0,1fr) auto 34px!important;column-gap:5px!important;row-gap:0!important;align-items:center!important;height:48px!important;min-height:48px!important;max-height:48px!important;padding:0 8px!important;box-sizing:border-box!important;position:relative!important}.app-header .logo-area>a{grid-column:1!important;grid-row:1!important}.app-header.header-expanded #game-menu-container{grid-column:2!important;grid-row:1!important;justify-self:stretch!important;width:auto!important;min-width:0!important}.app-header.header-expanded #btn-game-menu{width:100%!important;justify-content:space-between!important}.app-header.header-expanded .mobile-header-actions{grid-column:3!important;grid-row:1!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:0!important}.mobile-header-actions #btn-language-toggle,.mobile-header-actions #btn-theme-cycle{width:30px!important;min-width:30px!important;height:34px!important;padding:0!important;border:0!important;background:0 0!important;box-shadow:none!important}.mobile-menu-toggle{grid-column:4!important;grid-row:1!important;width:34px!important;height:36px!important;padding:8px 5px!important;border:0!important;border-radius:0!important;background:0 0!important;box-shadow:none!important;color:var(--text-main)!important}.mobile-menu-toggle span{height:2.5px!important;transform-origin:center}.mobile-menu-toggle span:first-child{width:21px!important;align-self:flex-start}.mobile-menu-toggle span:nth-child(2){width:15px!important;align-self:flex-end}.mobile-menu-toggle span:last-child{width:18px!important;align-self:flex-start}.header-expanded .mobile-menu-toggle span:first-child{transform:translateY(6px) rotate(45deg)!important}.header-expanded .mobile-menu-toggle span:last-child{width:21px!important;transform:translateY(-6px) rotate(-45deg)!important}.app-header.header-expanded .game-controls-container{position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;box-sizing:border-box!important;background:var(--bg-secondary)!important;border-bottom:1px solid var(--border-color)!important;box-shadow:0 10px 24px rgba(0,0,0,.35)!important;padding:6px 8px!important;z-index:1000!important;display:flex!important;grid-column:auto!important;grid-row:auto!important;gap:4px!important;min-width:0!important}.app-header:not(.header-expanded) .logo-area>a{grid-column:1/4!important;grid-row:1!important;width:max-content;max-width:100%}.app-header:not(.header-expanded) .logo-title{display:inline!important;font-size:15px!important;white-space:nowrap}.game-view:not(#game-view-sudoku) .game-shared-top-bar{justify-content:center!important;align-content:center!important;gap:5px!important}.game-view:not(#game-view-sudoku) .game-shared-top-bar .topbar-group{justify-content:center!important;align-content:center!important}.game-view:not(#game-view-sudoku) .game-shared-top-bar #btn-sound-toggle{margin:0!important}.game-view:not(#game-view-sudoku) .mobile-game-stats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(104px,100%),1fr))!important;align-items:stretch!important;justify-content:center!important;gap:6px!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>#caro-turn-indicator,.game-view:not(#game-view-sudoku) .mobile-game-stats>.game-timer,.game-view:not(#game-view-sudoku) .mobile-game-stats>.game2048-score-card,.game-view:not(#game-view-sudoku) .mobile-game-stats>.mines-counter-badge,.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 7px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>:not(:has(> svg)):not(#caro-turn-indicator){grid-template-columns:minmax(0,1fr)!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}.game-view:not(#game-view-sudoku) .mobile-game-stats .game2048-score-label,.game-view:not(#game-view-sudoku) .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>:not(:has(> svg))>.mobile-stat-label{grid-column:1!important}.game-view:not(#game-view-sudoku) .mobile-game-stats .game2048-score-card strong,.game-view:not(#game-view-sudoku) .mobile-game-stats .mines-counter-badge>span:not(.mobile-stat-label),.game-view:not(#game-view-sudoku) .mobile-game-stats .stat-num,.game-view:not(#game-view-sudoku) .mobile-game-stats .timer-digits{grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:16px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>:not(:has(> svg))>span:not(.mobile-stat-label){grid-column:1!important}.game-view:not(#game-view-sudoku) .mobile-game-stats:has(> :nth-child(4):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}.game-view:not(#game-view-sudoku) .mobile-game-stats:has(> :nth-child(4):last-child)>*{grid-column:span 2}.game-view:not(#game-view-sudoku) .mobile-game-stats:has(> :nth-child(4):last-child)>:last-child{grid-column:3/span 2}.game-view:not(#game-view-sudoku) .mobile-game-stats>.mines-counter-badge>svg,.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat>svg{grid-row:1!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>.mines-counter-badge>span:not(.mobile-stat-label),.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat>span:not(.mobile-stat-label){grid-column:1/-1!important;grid-row:2!important;justify-self:center!important;max-width:100%!important;font-size:13px!important;line-height:1.1!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>.mobile-stat-label{grid-column:1!important;grid-row:1!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>span:not(.mobile-stat-label){grid-column:1!important;grid-row:2!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> *))::before{content:attr(title);grid-column:1!important;grid-row:1!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:10px;font-weight:700;line-height:1.15;text-transform:uppercase}.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg)){grid-template-columns:minmax(0,1fr)!important;text-align:center!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>.mobile-stat-label,.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>span:not(.mobile-stat-label){justify-self:center!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>span:not(.mobile-stat-label){font-size:12px!important}.app-header.header-expanded{grid-template-columns:26px minmax(0,1fr) auto 30px!important;column-gap:3px!important;row-gap:0!important;padding:0 8px!important;height:48px!important;min-height:48px!important;max-height:48px!important}.app-header.header-expanded .logo-icon-svg{width:25px!important;height:25px!important}.app-header.header-expanded #btn-game-menu{height:32px!important;padding:2px 5px!important;gap:2px!important;border:0!important;box-shadow:none!important}.app-header.header-expanded .mobile-header-actions #btn-language-toggle,.app-header.header-expanded .mobile-header-actions #btn-theme-cycle{width:27px!important;min-width:27px!important;height:32px!important;border:0!important;box-shadow:none!important}.app-header.header-expanded .mobile-menu-toggle{width:30px!important;height:32px!important;border:0!important;box-shadow:none!important}.app-header.header-expanded .game-controls-container .btn{flex:0 0 30px!important;width:30px!important;min-width:30px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:7px!important;background:0 0!important;box-shadow:none!important;color:var(--text-main)!important}.app-header.header-expanded .game-controls-container .btn:focus-visible,.app-header.header-expanded .game-controls-container .btn:hover{background:var(--btn-hover-bg)!important}.app-header.header-expanded .game-controls-container .btn-hint,.app-header.header-expanded .game-controls-container .btn-primary{color:var(--accent-amber)!important}.app-header.header-expanded .game-controls-container .diff-select-group,.app-header.header-expanded .game-controls-container .select-input{min-width:0!important;height:34px!important;margin:0!important}.app-header.header-expanded .diff-select-group #difficulty-select{height:34px!important}#game-view-sudoku .board-wrapper{height:min(calc(100vw - 8px),var(--board-max-width))!important;border-width:2px!important;border-color:color-mix(in srgb,var(--border-thick) 72%,var(--bg-secondary))!important}#game-view-sudoku .sudoku-box{border-width:1px!important;border-color:color-mix(in srgb,var(--border-thick) 72%,var(--bg-secondary))!important}#game-view-sudoku .sudoku-cell{border-color:color-mix(in srgb,var(--border-color) 65%,var(--bg-secondary))!important}#sudoku-top-bar{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0 0 6px!important;padding:6px!important;gap:6px!important;border-radius:12px!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;min-height:44px!important;height:auto!important}#sudoku-top-bar .sudoku-topbar-actions{display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;width:100%!important}#sudoku-top-bar .sudoku-topbar-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:8px!important;background:var(--bg-tertiary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;cursor:pointer!important;box-shadow:none!important;transition:.15s!important}#sudoku-top-bar .sudoku-topbar-actions button:hover:not(:disabled){background:var(--btn-hover-bg)!important;border-color:var(--accent-amber)!important;color:var(--accent-amber)!important}#sudoku-top-bar .sudoku-topbar-actions button:active:not(:disabled){transform:scale(.94)!important}#sudoku-top-bar .sudoku-topbar-actions button svg{width:18px!important;height:18px!important}#sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):not(.active),.game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):not(.active){background:var(--bg-tertiary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;box-shadow:none!important;filter:none!important}#sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):not(.active) svg,.game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):not(.active) svg{color:var(--text-main)!important;stroke:currentColor!important}#sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):hover:not(:disabled):not(.active),.game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):hover:not(:disabled):not(.active){background:var(--btn-hover-bg)!important;border-color:var(--accent-amber)!important;color:var(--accent-amber)!important}#sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):hover:not(:disabled):not(.active) svg,.game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):hover:not(:disabled):not(.active) svg{color:var(--accent-amber)!important;stroke:var(--accent-amber)!important}#sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):active:not(:disabled),.game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):active:not(:disabled){transform:scale(.94)!important}#game-view-sudoku .mobile-game-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 6px!important;box-sizing:border-box!important}#game-view-sudoku .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 7px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}#game-view-sudoku .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}#game-view-sudoku .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}#game-view-sudoku .mobile-game-stats .diff-meta-label{display:none!important}#game-view-sudoku .mobile-game-stats .sudoku-diff-icon{display:block!important}#game-view-sudoku .mobile-game-stats #board-diff-badge{grid-column:2!important;grid-row:2!important;padding:1px 6px!important;font-size:11px!important;font-weight:700!important;border-radius:4px!important;line-height:1.2!important;white-space:nowrap!important;width:fit-content!important;align-self:center!important}#game-view-sudoku .mobile-game-stats #sudoku-hints-val,#game-view-sudoku .mobile-game-stats .timer-digits{grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}.game-view:not(#game-view-sudoku) .unified-game-layout{width:100%!important;max-width:100%!important;gap:4px!important;padding:2px 4px 8px!important;margin-inline:auto!important;box-sizing:border-box!important}.game-view:not(#game-view-sudoku) .game-shared-top-bar{min-height:40px!important;margin:0 auto 3px!important;padding:3px 5px!important}.game-view:not(#game-view-sudoku) .mobile-game-stats{margin:0 0 3px!important}.game-view:not(#game-view-sudoku) .mobile-game-stats>*{height:44px!important;min-height:44px!important}.game-view:not(#game-view-sudoku) .game-screen-container{padding:0!important}.game-view:not(#game-view-sudoku) .game-status-card{min-height:30px!important;padding:4px 8px!important;margin-bottom:4px!important}.game-view:not(#game-view-sudoku) .game-descs-bar,.game-view:not(#game-view-sudoku) .game-status-bar{margin-bottom:4px!important}.game-view:not(#game-view-sudoku) .game-board-wrapper{width:min(100%,calc(100vw - 8px))!important;max-width:calc(100vw - 8px)!important;margin-inline:auto!important;box-sizing:border-box!important}#game-view-mastermind .mastermind-game-layout,#game-view-nonogram .nonogram-game-layout{margin-inline:auto!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;gap:4px!important;padding:2px 4px 8px!important;margin-inline:auto!important;box-sizing:border-box!important}#game-view-mastermind .mastermind-board-wrapper,#game-view-nonogram .nonogram-board-wrapper,#game-view-pipes .pipes-board-wrapper,#game-view-pipes .pipes-screen-container{width:100%!important;max-width:100%!important;margin-inline:auto!important;box-sizing:border-box!important}#game-view-pipes #pipes-canvas-container{max-width:100%!important;margin-inline:auto!important;box-sizing:border-box!important}#game-view-pipes #pipes-canvas{max-width:100%!important;height:auto!important}#game-view-nonogram .nonogram-board-wrapper{margin-bottom:6px!important}}html.force-mobile-layout .mobile-menu-toggle{display:flex!important}html.force-mobile-layout .main-layout{display:flex!important;flex-direction:column!important;align-items:center!important;padding:8px!important;gap:8px!important}html.force-mobile-layout .controls-column{width:min(calc(100vw - 8px),var(--board-max-width))!important;max-width:100%!important;margin:0 auto!important}html.force-mobile-layout #game-view-sudoku .board-column{display:flex!important;flex-direction:column!important;align-items:center!important}html.force-mobile-layout #game-view-sudoku .action-buttons-row,html.force-mobile-layout #game-view-sudoku .eraser-tools-group,html.force-mobile-layout #game-view-sudoku .mode-segmented-bar,html.force-mobile-layout #game-view-sudoku .mode-segmented-bar-2{display:none!important}html.force-mobile-layout #game-view-sudoku .controls-column{width:min(calc(100vw - 8px),var(--board-max-width))!important;display:flex!important;flex-direction:column!important}html.force-mobile-layout #game-view-sudoku .keypad-grid{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important}html.force-mobile-layout #game-view-sudoku .sudoku-actions-bar{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:4px!important;width:100%!important}html.force-mobile-layout #game-view-sudoku .sudoku-action-btn{height:42px!important;min-width:0!important;padding:0!important}html.force-mobile-layout #game-view-sudoku .sudoku-action-btn svg{width:18px!important;height:18px!important}html.force-mobile-layout #game-view-sudoku .drawing-tools-bar{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;width:100%!important}html.force-mobile-layout #game-view-sudoku .drawing-tools-bar .mode-btn{height:38px!important;min-width:0!important;padding:0!important}html.force-mobile-layout #game-view-sudoku .drawing-tools-bar .mode-btn svg{width:18px!important;height:18px!important}html.force-mobile-layout #game-view-sudoku .sudoku-drawing-panel{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:2px;padding:6px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;box-sizing:border-box}html.force-mobile-layout #game-view-sudoku .board-wrapper,html.force-mobile-layout #game-view-sudoku .sudoku-board{width:min(calc(100vw - 8px),var(--board-max-width))!important;margin-inline:auto!important}html.force-mobile-layout .mobile-game-stats,html.force-mobile-layout .mobile-header-actions{display:flex!important}html.force-mobile-layout #game-view-sudoku .practice-banner{width:min(calc(100vw - 8px),var(--board-max-width))!important;max-width:calc(100vw - 8px)!important;margin:0 auto 6px!important;padding:0 2px!important;align-items:flex-start!important;justify-content:flex-start!important;background:0 0!important;border:none!important;box-shadow:none!important}html.force-mobile-layout #game-view-sudoku .practice-banner-info{align-items:flex-start!important;text-align:left!important}html.force-mobile-layout #game-view-sudoku .practice-banner-actions{display:none!important}html.force-mobile-layout .game-screen-container{border:none!important;border-radius:0!important;background:0 0!important;box-shadow:none!important;padding:4px 0!important}html.force-mobile-layout .futoshiki-top-bar{margin:12px auto 8px!important}html.force-mobile-layout .futoshiki-screen{padding:8px 4px!important}html.force-mobile-layout .futoshiki-keypad{gap:6px}html.force-mobile-layout .nim-game-layout{max-width:100vw!important}html.force-mobile-layout .nim-screen-container,html.force-mobile-layout .nim-top-bar{width:min(96vw,560px)!important;max-width:min(96vw,560px)!important}html.force-mobile-layout .nim-rule-card{display:none!important}html.force-mobile-layout[data-theme] .nim-pile-row{min-height:72px!important}html.force-mobile-layout[data-theme] .nim-pebbles-wrapper{min-height:52px!important}html.force-mobile-layout #game-view-einstein,html.force-mobile-layout .einstein-board-wrapper,html.force-mobile-layout .einstein-clues-section,html.force-mobile-layout .einstein-game-layout,html.force-mobile-layout .einstein-matrix-container{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow-x:hidden!important}html.force-mobile-layout .einstein-game-layout{padding:6px 4px 18px!important}html.force-mobile-layout .einstein-top-bar{width:100%!important;max-width:100%!important;margin:4px auto 6px!important;padding:4px 6px!important;box-sizing:border-box!important}html.force-mobile-layout .einstein-board-wrapper{width:100%!important;max-width:100%!important;border:none!important;border-radius:0!important;background:0 0!important;box-shadow:none!important;padding:2px 0!important;margin:0!important;gap:6px!important}html.force-mobile-layout .mobile-game-stats{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:5px!important;width:100%!important;margin:2px 0 6px!important;box-sizing:border-box!important}html.force-mobile-layout .mobile-game-stats .einstein-status-mode,html.force-mobile-layout .mobile-game-stats .einstein-status-progress,html.force-mobile-layout .mobile-game-stats .game-timer,html.force-mobile-layout .mobile-game-stats .topbar-stat{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;background:var(--bg-tertiary)!important;border:none!important;outline:0!important;box-shadow:none!important;border-radius:8px!important;padding:4px 8px!important;min-height:32px!important;height:32px!important;font-size:12px!important;font-weight:700!important;box-sizing:border-box!important;flex-shrink:0!important;user-select:none!important}html.force-mobile-layout .mobile-game-stats .einstein-status-mode{color:var(--accent-amber)!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important;touch-action:manipulation!important}html.force-mobile-layout .mobile-game-stats .einstein-status-mode.exclude-mode{color:var(--accent-red)!important}html.force-mobile-layout .mobile-game-stats .einstein-status-mode:active{transform:scale(.95)}html.force-mobile-layout .mobile-game-stats .einstein-status-progress{color:var(--text-muted)!important}html.force-mobile-layout .mobile-game-stats .einstein-status-progress #einstein-progress-val,html.force-mobile-layout .mobile-game-stats .einstein-status-progress b{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;font-size:12.5px!important;font-weight:700!important;color:var(--accent-amber)!important}html.force-mobile-layout .einstein-status-bar{display:none!important}html.force-mobile-layout .einstein-matrix-container{overflow-x:hidden!important;width:100%!important;max-width:100%!important;margin:4px 0!important;padding:0!important;box-sizing:border-box!important}html.force-mobile-layout .einstein-matrix-container>.einstein-cat-row,html.force-mobile-layout .einstein-matrix-container>.einstein-houses-row{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;gap:3px!important}html.force-mobile-layout .einstein-houses-row{display:grid!important;grid-template-columns:28px repeat(var(--house-count,5),minmax(0,1fr))!important;gap:3px!important;width:100%!important;box-sizing:border-box!important;align-items:center!important}html.force-mobile-layout .einstein-house-spacer{min-width:0!important;width:28px!important;max-width:28px!important}html.force-mobile-layout .einstein-house-header{min-width:0!important;width:100%!important;padding:2px 0!important;box-sizing:border-box!important;border-radius:6px!important}html.force-mobile-layout .einstein-house-header .house-num svg{width:28px!important;height:28px!important}html.force-mobile-layout .einstein-cat-row{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:3px!important;width:100%!important;box-sizing:border-box!important;align-items:center!important}html.force-mobile-layout .cat-label,html.force-mobile-layout .einstein-cat-row .cat-label{min-width:0!important;width:28px!important;max-width:28px!important;min-height:48px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}html.force-mobile-layout .cat-label svg,html.force-mobile-layout .einstein-cat-row .cat-label svg{width:18px!important;height:18px!important}html.force-mobile-layout .cat-slots-row{display:grid!important;grid-template-columns:repeat(var(--house-count,5),minmax(0,1fr))!important;gap:3px!important;width:100%!important;box-sizing:border-box!important}html.force-mobile-layout .einstein-slot{min-width:0!important;width:100%!important;min-height:48px!important;max-height:52px!important;padding:2px!important;border-radius:6px!important;box-sizing:border-box!important}html.force-mobile-layout .einstein-placed-item .item-icon{width:26px!important;height:26px!important}html.force-mobile-layout .einstein-placed-item .item-icon svg{width:24px!important;height:24px!important}html.force-mobile-layout .candidates-subgrid{gap:2px!important;padding:1px!important;width:100%!important;justify-content:center!important}html.force-mobile-layout .einstein-candidate-btn{width:19px!important;height:19px!important;border-radius:3px!important;padding:0!important}html.force-mobile-layout .einstein-candidate-btn svg{width:15px!important;height:15px!important}html.force-mobile-layout .einstein-clues-section{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow-x:hidden!important;margin:4px 0 0!important;padding-top:4px!important}html.force-mobile-layout .einstein-clues-list{width:100%!important;max-width:100%!important;box-sizing:border-box!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;max-height:38vh!important;padding-right:2px!important}@media (min-width:440px){html.force-mobile-layout .einstein-clues-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}}html.force-mobile-layout .einstein-clues-title{font-size:.84rem!important;margin-bottom:4px!important}html.force-mobile-layout .einstein-clue-card{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:2px 3px!important;min-height:32px!important}html.force-mobile-layout .einstein-clue-card .clue-card-left{gap:2.5px!important;justify-content:flex-start!important}html.force-mobile-layout .einstein-clue-card .clue-badge-status{width:15px!important;height:15px!important;font-size:.62rem!important}html.force-mobile-layout .einstein-clue-card .clue-visual-row{gap:1.5px!important;flex-wrap:nowrap!important}html.force-mobile-layout .einstein-clue-card .clue-rel-symbol,html.force-mobile-layout .einstein-clue-card .clue-visual-row>b{min-width:8px!important;font-size:.85rem!important;padding:0!important;margin:0!important}html.force-mobile-layout .einstein-clue-card .clue-icon-badge{width:18px!important;height:18px!important}html.force-mobile-layout .einstein-clue-card .clue-icon-badge svg{width:16px!important;height:16px!important}html.force-mobile-layout .einstein-clue-card.clue-dual-rel{padding:2px!important}html.force-mobile-layout .einstein-clue-card.clue-dual-rel .clue-icon-badge{width:15px!important;height:15px!important}html.force-mobile-layout .einstein-clue-card.clue-dual-rel .clue-icon-badge svg{width:14px!important;height:14px!important}html.force-mobile-layout .einstein-clue-card.clue-dual-rel .clue-rel-symbol,html.force-mobile-layout .einstein-clue-card.clue-dual-rel .clue-visual-row>b{min-width:6px!important;font-size:.78rem!important}html.force-mobile-layout .einstein-clue-card .clue-text{font-size:11px!important;word-break:break-word!important;overflow-wrap:break-word!important}html.force-mobile-layout .app-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px 6px!important;box-sizing:border-box!important;align-items:center!important;z-index:1000!important}html.force-mobile-layout .app-header .header-controls,html.force-mobile-layout .app-header>.header-right-group,html.force-mobile-layout .app-header>.logo-area{display:contents!important}html.force-mobile-layout body .app-header,html.force-mobile-layout body .app-header.header-expanded{height:calc(48px + env(safe-area-inset-top,0px))!important;min-height:calc(48px + env(safe-area-inset-top,0px))!important;max-height:calc(48px + env(safe-area-inset-top,0px))!important;padding-top:env(safe-area-inset-top,0)!important;box-sizing:border-box!important}html body .game-view:not(#game-view-sudoku) :is(.game-board-wrapper,.einstein-board-wrapper){border:0!important;background:0 0!important;box-shadow:none!important;border-radius:0!important}html body .game-view:not(#game-view-sudoku) .game-screen-container{border:0!important;background:0 0!important;box-shadow:none!important;border-radius:0!important}@media (max-width:640px){html body .app-header,html body .app-header.header-expanded{height:calc(48px + env(safe-area-inset-top,0px))!important;min-height:calc(48px + env(safe-area-inset-top,0px))!important;max-height:calc(48px + env(safe-area-inset-top,0px))!important;padding-top:env(safe-area-inset-top,0)!important;box-sizing:border-box!important}html body #game-view-waterjug .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:column!important;gap:4px!important;width:calc(100% - 20px)!important;margin-inline:auto!important}}html.force-mobile-layout body #game-view-waterjug .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:column!important;gap:4px!important;width:calc(100% - 20px)!important;margin-inline:auto!important}html.force-mobile-layout .app-header .logo-area>a{grid-column:1;grid-row:1;gap:4px!important;grid-column:1;grid-row:1;grid-column:1!important;grid-row:1!important}html.force-mobile-layout .app-header .logo-title{font-size:15px!important}html.force-mobile-layout .app-header #game-menu-container{grid-column:2;grid-row:1;min-width:0;justify-self:center;max-width:100%}html.force-mobile-layout .app-header #btn-game-menu{min-width:0;max-width:100%;height:36px;padding:4px 8px;gap:4px;font-size:12px}html.force-mobile-layout .app-header #active-game-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.force-mobile-layout .app-header .game-icon-mini{display:none}html.force-mobile-layout .mobile-header-actions{display:flex;grid-column:3;grid-row:1;gap:4px}html.force-mobile-layout .mobile-header-actions #btn-language-toggle svg{display:none}html.force-mobile-layout #header-row-divider{display:none!important}html.force-mobile-layout .app-header .game-controls-container{grid-column:1/-1;grid-row:2;display:flex!important;justify-content:space-between!important;align-items:center!important;width:100%!important;max-width:none!important;flex-wrap:nowrap!important;gap:8px!important;margin:0!important;padding:0!important}html.force-mobile-layout .app-header .game-controls-container>:not(.header-nav-btn):not(.header-level-select):not(.diff-select-group){display:none!important}html.force-mobile-layout .app-header .game-controls-container .header-nav-btn{flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;order:unset!important}html.force-mobile-layout .app-header .game-controls-container .diff-select-group,html.force-mobile-layout .app-header .game-controls-container .select-input{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;order:unset!important}html.force-mobile-layout .app-header .diff-select-group #difficulty-select{width:100%!important;height:38px!important;padding-left:6px!important;font-size:13px!important}html.force-mobile-layout #btn-sudoku-next-diff,html.force-mobile-layout #btn-sudoku-prev-diff{display:inline-flex!important}html.force-mobile-layout .app-header #game-menu-dropdown{position:fixed!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:calc(100vw - 16px)!important;max-width:520px!important}html.force-mobile-layout #game-view-sudoku .main-layout{display:flex!important;flex-direction:column!important;padding:8px!important;gap:8px!important}html.force-mobile-layout #game-view-sudoku .board-column{gap:0!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}html.force-mobile-layout #game-view-sudoku .board-wrapper{margin-top:0!important;margin-bottom:8px!important}html.force-mobile-layout #sudoku-top-bar{display:flex!important;justify-content:space-between!important;align-items:center!important;width:min(88vw,var(--board-max-width))!important;max-width:var(--board-max-width)!important;gap:4px!important;box-sizing:border-box!important}html.force-mobile-layout #sudoku-top-bar .sudoku-diff-left{gap:4px!important}html.force-mobile-layout #sudoku-top-bar .diff-meta-label{display:none!important}html.force-mobile-layout #sudoku-top-bar .diff-badge{font-size:10.5px!important;font-weight:700!important;padding:2px 6px!important;border-radius:4px!important;letter-spacing:.3px!important}html.force-mobile-layout #sudoku-top-bar .game-timer{margin:0!important;flex-shrink:0!important;height:22px!important;padding:0 5px!important;font-size:11.5px!important;gap:3px!important;border-radius:5px!important}html.force-mobile-layout #sudoku-top-bar .game-timer svg{width:11px!important;height:11px!important}html.force-mobile-layout #game-view-sudoku .controls-column{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:6px!important}html.force-mobile-layout #btn-delete,html.force-mobile-layout #game-view-sudoku .action-buttons-row,html.force-mobile-layout #game-view-sudoku .mode-segmented-bar,html.force-mobile-layout #game-view-sudoku .mode-segmented-bar-2{display:none!important}html.force-mobile-layout .mobile-mode-row{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;order:0}html.force-mobile-layout .mobile-mode-row .mode-btn{width:100%!important;min-width:0!important;height:38px!important;padding:0!important;margin:0!important;border-radius:7px!important}html.force-mobile-layout .mobile-mode-row .mode-btn svg{width:18px;height:18px}html.force-mobile-layout .mobile-drawing-row{order:1;display:none;flex-direction:column!important;gap:8px!important;width:100%!important;align-items:stretch!important;margin:4px 0 8px!important;box-sizing:border-box!important}html.force-mobile-layout .mobile-drawing-row:has(#color-palette-bar[style*=flex]){display:flex!important}html.force-mobile-layout .mobile-drawing-row #color-palette-bar{display:flex!important;flex-direction:row!important;width:100%!important;justify-content:space-between!important;align-items:center!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;border-radius:10px!important;padding:6px 8px!important;margin:0!important;box-sizing:border-box!important;gap:6px!important}html.force-mobile-layout .mobile-drawing-row .color-swatch{flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:44px!important;height:36px!important;border-radius:8px!important;cursor:pointer!important;box-sizing:border-box!important;border:2px solid transparent!important;transition:transform .15s,box-shadow .15s,border-color .15s!important;touch-action:manipulation!important}html.force-mobile-layout .mobile-drawing-row .color-swatch.active{border-color:#fff!important;transform:scale(1.08)!important;box-shadow:0 0 8px rgba(255,255,255,.6)!important}html.force-mobile-layout .mobile-drawing-row .color-swatch:active{transform:scale(.92)!important}html.force-mobile-layout .mobile-drawing-row .eraser-tools-group{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important}html.force-mobile-layout .mobile-drawing-row .eraser-tools-group .btn{width:100%!important;min-width:0!important;height:38px!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:8px!important;background:var(--btn-bg)!important;border:1px solid var(--btn-border)!important;color:var(--text-muted)!important;box-shadow:var(--key-shadow)!important;transition:.15s!important;box-sizing:border-box!important;touch-action:manipulation!important}html.force-mobile-layout .mobile-drawing-row .eraser-tools-group .btn svg{width:18px!important;height:18px!important;stroke:currentColor!important;flex-shrink:0!important;display:block!important}html.force-mobile-layout .mobile-drawing-row .eraser-tools-group .btn:hover{background:var(--btn-hover-bg)!important;border-color:var(--btn-hover-border)!important;color:var(--accent-red)!important}html.force-mobile-layout .mobile-drawing-row .eraser-tools-group .btn:active{background:var(--btn-active-bg)!important;transform:scale(.95)!important}html.force-mobile-layout #game-view-sudoku .keypad-grid{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:4px!important;width:100%!important;order:2;order:0!important}html.force-mobile-layout #game-view-sudoku .keypad-grid .key-btn{aspect-ratio:auto!important;min-width:0!important;width:100%!important;height:46px!important;padding:0!important;aspect-ratio:auto!important;font-size:23px!important}html.force-mobile-layout .mobile-action-row{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important;order:3;width:100%!important;box-sizing:border-box!important}html.force-mobile-layout .mobile-action-row>button{width:100%!important;min-width:0!important;height:42px!important;padding:0!important;margin:0!important;aspect-ratio:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;border-radius:8px!important;background:var(--btn-bg)!important;border:1px solid var(--btn-border)!important;color:var(--btn-text)!important;box-shadow:var(--key-shadow)!important;cursor:pointer!important;transition:.15s!important;box-sizing:border-box!important;-webkit-tap-highlight-color:transparent!important;touch-action:manipulation!important}html.force-mobile-layout .mobile-action-row>button svg{width:20px!important;height:20px!important;stroke:currentColor!important;flex-shrink:0!important;display:block!important}html.force-mobile-layout .mobile-action-row>button:hover{background:var(--btn-hover-bg)!important;border-color:var(--btn-hover-border)!important;color:var(--btn-hover-text)!important;transform:translateY(-1px)!important}html.force-mobile-layout .mobile-action-row>button:active{background:var(--btn-active-bg)!important;border-color:var(--btn-active-border)!important;color:var(--btn-active-text)!important;transform:scale(.96)!important}html.force-mobile-layout .mobile-action-row>#btn-hint{background:var(--btn-hint-bg)!important;border:1px solid var(--btn-hint-border)!important;color:var(--btn-hint-text)!important;box-shadow:var(--btn-hint-shadow)!important;background:var(--btn-bg)!important;border-color:var(--btn-border)!important;color:var(--btn-text)!important;box-shadow:var(--key-shadow)!important}html.force-mobile-layout .mobile-action-row>#btn-hint:hover{filter:brightness(1.1)!important}html.force-mobile-layout .mobile-action-row>#btn-hint:active{filter:brightness(.95)!important;transform:scale(.96)!important}html.force-mobile-layout .game-view .unified-game-layout{padding:8px 8px 20px!important}html.force-mobile-layout .game-view .game-shared-top-bar{width:fit-content!important;max-width:100%!important;box-sizing:border-box;margin:0 auto 6px!important;padding:4px 6px!important;gap:4px!important;border-radius:10px!important}html.force-mobile-layout .game-shared-top-bar .topbar-group{gap:4px!important}html.force-mobile-layout .game-shared-top-bar .topbar-group:not(:has(> *)){display:none!important}html.force-mobile-layout .game-shared-top-bar #btn-sound-toggle{width:36px!important;min-width:36px!important;height:36px!important;margin:0!important}html.force-mobile-layout .mobile-game-stats{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px}html.force-mobile-layout .mobile-game-stats .game-timer,html.force-mobile-layout .mobile-game-stats .topbar-stat{min-height:34px;box-sizing:border-box}html.force-mobile-layout .mobile-game-stats .game2048-score-card{flex:1 1 0;min-width:0}html.force-mobile-layout .game2048-score-strip:not(:has(.game2048-score-card)){display:none!important}html.force-mobile-layout body,html.force-mobile-layout body :not(input):not(textarea):not([contenteditable=true]){-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none}html.force-mobile-layout [contenteditable=true],html.force-mobile-layout input,html.force-mobile-layout textarea{-webkit-user-select:text!important;user-select:text!important}html.force-mobile-layout .app-header{grid-template-columns:minmax(0,1fr) auto!important;margin-bottom:clamp(4px,calc(2dvh - 8px),12px)!important}html.force-mobile-layout .app-header .logo-title,html.force-mobile-layout .app-header .mobile-brand-chevron{display:none!important}html.force-mobile-layout .mobile-menu-toggle{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:space-around;align-items:center;border:1px solid var(--border-color);background:var(--btn-bg);color:var(--btn-text)}html.force-mobile-layout .mobile-menu-toggle span{display:block;width:19px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s;height:2.5px!important;transform-origin:center}html.force-mobile-layout .header-expanded .mobile-menu-toggle span:nth-child(2){opacity:0}html.force-mobile-layout .app-header:not(.header-expanded) #game-menu-container,html.force-mobile-layout .app-header:not(.header-expanded) .game-controls-container,html.force-mobile-layout .app-header:not(.header-expanded) .mobile-header-actions{display:none!important}html.force-mobile-layout .app-header.header-expanded #game-menu-container{grid-column:1/-1;grid-row:2;justify-self:stretch}html.force-mobile-layout .app-header.header-expanded .mobile-header-actions{grid-column:1/-1;grid-row:3;justify-content:center}html.force-mobile-layout .app-header.header-expanded .game-controls-container{grid-row:4}html.force-mobile-layout #game-view-sudoku .main-layout,html.force-mobile-layout .game-view .unified-game-layout{padding-left:4px!important;padding-right:4px!important}html.force-mobile-layout #game-view-sudoku .board-wrapper,html.force-mobile-layout #game-view-sudoku .sudoku-board{width:min(calc(100vw - 8px),var(--board-max-width))!important;max-width:100%!important}html.force-mobile-layout .mobile-mode-row{grid-template-columns:repeat(7,minmax(0,1fr))}html.force-mobile-layout .mobile-mode-row>.mode-btn[data-mode=arrow],html.force-mobile-layout .mobile-mode-row>.mode-btn[data-mode=circle],html.force-mobile-layout .mobile-mode-row>.mode-btn[data-mode=cross],html.force-mobile-layout .mobile-mode-row>.mode-btn[data-mode=dashed-arrow],html.force-mobile-layout .mobile-mode-row>.mode-btn[data-mode=normal],html.force-mobile-layout .mobile-mode-row>.mode-btn[data-mode=notes]{display:none!important}html.force-mobile-layout .mobile-mode-row .mobile-cycle{display:inline-flex!important;align-items:center;justify-content:center}html.force-mobile-layout .mobile-action-row>#btn-hint.active{background:var(--btn-hint-bg)!important;border-color:var(--btn-hint-border)!important;color:var(--btn-hint-text)!important}html.force-mobile-layout .mobile-game-stats>*{flex:1 1 0!important;min-width:0!important;min-height:38px!important;border-radius:8px!important;box-sizing:border-box!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;box-shadow:none!important;font-size:12px!important}html.force-mobile-layout .mobile-game-stats .game-timer,html.force-mobile-layout .mobile-game-stats .game2048-score-card,html.force-mobile-layout .mobile-game-stats .topbar-stat{display:flex!important;align-items:center!important;justify-content:center!important;padding:5px 6px!important;margin:0!important}html.force-mobile-layout .mobile-game-stats .game2048-score-card{flex-direction:row!important;gap:5px!important}html.force-mobile-layout .app-header,html.force-mobile-layout .app-header.header-expanded{grid-template-columns:28px minmax(0,1fr) auto 34px!important;column-gap:5px!important;align-items:center!important;box-sizing:border-box!important}html.force-mobile-layout .app-header.header-expanded #game-menu-container{grid-column:2!important;grid-row:1!important;justify-self:stretch!important;width:auto!important;min-width:0!important}html.force-mobile-layout .app-header.header-expanded #btn-game-menu{width:100%!important;justify-content:space-between!important}html.force-mobile-layout .app-header.header-expanded .mobile-header-actions{grid-column:3!important;grid-row:1!important;display:flex!important;justify-content:center!important;align-items:center!important}html.force-mobile-layout .mobile-header-actions #btn-language-toggle,html.force-mobile-layout .mobile-header-actions #btn-theme-cycle{width:30px!important;min-width:30px!important;height:34px!important;padding:0!important;border:0!important;background:0 0!important;box-shadow:none!important}html.force-mobile-layout .mobile-menu-toggle{grid-column:4!important;grid-row:1!important;width:34px!important;height:36px!important;padding:8px 5px!important;border:0!important;border-radius:0!important;background:0 0!important;box-shadow:none!important;color:var(--text-main)!important}html.force-mobile-layout .mobile-menu-toggle span:first-child{width:21px!important;align-self:flex-start}html.force-mobile-layout .mobile-menu-toggle span:nth-child(2){width:15px!important;align-self:flex-end}html.force-mobile-layout .mobile-menu-toggle span:last-child{width:18px!important;align-self:flex-start}html.force-mobile-layout .header-expanded .mobile-menu-toggle span:first-child{transform:translateY(6px) rotate(45deg)!important}html.force-mobile-layout .header-expanded .mobile-menu-toggle span:last-child{width:21px!important;transform:translateY(-6px) rotate(-45deg)!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container{position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;box-sizing:border-box!important;background:var(--bg-secondary)!important;border-bottom:1px solid var(--border-color)!important;box-shadow:0 10px 24px rgba(0,0,0,.35)!important;display:flex!important;grid-column:auto!important;grid-row:auto!important;gap:4px!important;min-width:0!important}html.force-mobile-layout .app-header:not(.header-expanded) .logo-area>a{grid-column:1/4!important;grid-row:1!important;width:max-content;max-width:100%}html.force-mobile-layout .app-header:not(.header-expanded) .logo-title{display:inline!important;white-space:nowrap;font-size:16px!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-shared-top-bar{justify-content:center!important;align-content:center!important;gap:5px!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-shared-top-bar .topbar-group{justify-content:center!important;align-content:center!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-shared-top-bar #btn-sound-toggle{margin:0!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(104px,100%),1fr))!important;align-items:stretch!important;justify-content:center!important;gap:6px!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>#caro-turn-indicator,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.game-timer,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.game2048-score-card,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.mines-counter-badge,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 7px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>:not(:has(> svg)){grid-template-columns:minmax(0,1fr)!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats .game2048-score-label,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>:not(:has(> svg))>.mobile-stat-label{grid-column:1!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats .game2048-score-card strong,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats .mines-counter-badge>span:not(.mobile-stat-label),html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats .stat-num,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats .timer-digits{grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:16px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>:not(:has(> svg))>span:not(.mobile-stat-label){grid-column:1!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats:has(> :nth-child(4):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats:has(> :nth-child(4):last-child)>*{grid-column:span 2}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats:has(> :nth-child(4):last-child)>:last-child{grid-column:3/span 2}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.mines-counter-badge>svg,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat>svg{grid-row:1!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.mines-counter-badge>span:not(.mobile-stat-label),html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat>span:not(.mobile-stat-label){grid-column:1/-1!important;grid-row:2!important;justify-self:center!important;max-width:100%!important;font-size:13px!important;line-height:1.1!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>.mobile-stat-label{grid-column:1!important;grid-row:1!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>span:not(.mobile-stat-label){grid-column:1!important;grid-row:2!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> *))::before{content:attr(title);grid-column:1!important;grid-row:1!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:10px;font-weight:700;line-height:1.15;text-transform:uppercase}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg)){grid-template-columns:minmax(0,1fr)!important;text-align:center!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>.mobile-stat-label,html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>span:not(.mobile-stat-label){justify-self:center!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>.topbar-stat:not(:has(> svg))>span:not(.mobile-stat-label){font-size:12px!important}html.force-mobile-layout .app-header.header-expanded{grid-template-columns:26px minmax(0,1fr) auto 30px!important;column-gap:3px!important}html.force-mobile-layout .app-header.header-expanded .logo-icon-svg{width:25px!important;height:25px!important}html.force-mobile-layout .app-header.header-expanded #btn-game-menu{gap:2px!important;box-shadow:none!important}html.force-mobile-layout .app-header.header-expanded .mobile-header-actions #btn-language-toggle,html.force-mobile-layout .app-header.header-expanded .mobile-header-actions #btn-theme-cycle{width:27px!important;min-width:27px!important;height:32px!important;border:0!important;box-shadow:none!important}html.force-mobile-layout .app-header.header-expanded .mobile-menu-toggle{border:0!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container .btn{flex:0 0 30px!important;padding:0!important;border:0!important;border-radius:7px!important;background:0 0!important;box-shadow:none!important;color:var(--text-main)!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container .btn:focus-visible,html.force-mobile-layout .app-header.header-expanded .game-controls-container .btn:hover{background:var(--btn-hover-bg)!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container .btn-hint,html.force-mobile-layout .app-header.header-expanded .game-controls-container .btn-primary{color:var(--accent-amber)!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container .diff-select-group,html.force-mobile-layout .app-header.header-expanded .game-controls-container .select-input{min-width:0!important;height:34px!important;margin:0!important}html.force-mobile-layout .app-header.header-expanded .diff-select-group #difficulty-select{height:34px!important}html.force-mobile-layout #game-view-sudoku .board-wrapper{height:min(calc(100vw - 8px),var(--board-max-width))!important;border-width:2px!important;border-color:color-mix(in srgb,var(--border-thick) 72%,var(--bg-secondary))!important}html.force-mobile-layout #game-view-sudoku .sudoku-box{border-width:1px!important;border-color:color-mix(in srgb,var(--border-thick) 72%,var(--bg-secondary))!important}html.force-mobile-layout #game-view-sudoku .sudoku-cell{border-color:color-mix(in srgb,var(--border-color) 65%,var(--bg-secondary))!important}html.force-mobile-layout #sudoku-top-bar{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0 0 6px!important;padding:6px!important;gap:6px!important;border-radius:12px!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;min-height:44px!important;height:auto!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions{display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;width:100%!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:8px!important;background:var(--bg-tertiary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;cursor:pointer!important;box-shadow:none!important;transition:.15s!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions button:hover:not(:disabled){background:var(--btn-hover-bg)!important;border-color:var(--accent-amber)!important;color:var(--accent-amber)!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions button:active:not(:disabled){transform:scale(.94)!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions button svg{width:18px!important;height:18px!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):not(.active),html.force-mobile-layout .game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):not(.active){background:var(--bg-tertiary)!important;border:1px solid var(--border-color)!important;color:var(--text-main)!important;box-shadow:none!important;filter:none!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):not(.active) svg,html.force-mobile-layout .game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):not(.active) svg{color:var(--text-main)!important;stroke:currentColor!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):hover:not(:disabled):not(.active),html.force-mobile-layout .game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):hover:not(:disabled):not(.active){background:var(--btn-hover-bg)!important;border-color:var(--accent-amber)!important;color:var(--accent-amber)!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):hover:not(:disabled):not(.active) svg,html.force-mobile-layout .game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):hover:not(:disabled):not(.active) svg{color:var(--accent-amber)!important;stroke:var(--accent-amber)!important}html.force-mobile-layout #sudoku-top-bar .sudoku-topbar-actions :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):active:not(:disabled),html.force-mobile-layout .game-shared-top-bar :is(button,.topbar-btn,.btn,.btn-primary,.btn-hint):active:not(:disabled){transform:scale(.94)!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 6px!important;box-sizing:border-box!important}.sudoku-stat-hints{display:none!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;width:100%!important;min-width:0!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats .diff-meta-label{display:none!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats .sudoku-diff-icon{display:block!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats #board-diff-badge{grid-column:2!important;grid-row:2!important;padding:1px 6px!important;font-weight:700!important;border-radius:4px!important;line-height:1.2!important;white-space:nowrap!important;width:fit-content!important;align-self:center!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats #sudoku-hints-val,html.force-mobile-layout #game-view-sudoku .mobile-game-stats .timer-digits{grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}html.force-mobile-layout #game-view-einstein .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 6px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-einstein .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 7px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout #game-view-einstein .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}html.force-mobile-layout #game-view-einstein .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}html.force-mobile-layout #game-view-einstein .mobile-game-stats .stat-num,html.force-mobile-layout #game-view-einstein .mobile-game-stats .timer-digits{grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .unified-game-layout{width:100%!important;max-width:100%!important;gap:4px!important;padding:2px 4px 8px!important;margin-inline:auto!important;box-sizing:border-box!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-shared-top-bar{min-height:40px!important;margin:0 auto 3px!important;padding:3px 5px!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats{margin:0 0 3px!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-stats>*{height:44px!important;min-height:44px!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-screen-container{padding:0!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-status-card{min-height:30px!important;padding:4px 8px!important;margin-bottom:4px!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-descs-bar,html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-status-bar{margin-bottom:4px!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .game-board-wrapper{width:min(100%,calc(100vw - 8px))!important;max-width:calc(100vw - 8px)!important;margin-inline:auto!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-mastermind .mastermind-game-layout,html.force-mobile-layout #game-view-nonogram .nonogram-game-layout{margin-inline:auto!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;gap:4px!important;padding:2px 4px 8px!important;margin-inline:auto!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-mastermind .mastermind-board-wrapper,html.force-mobile-layout #game-view-nonogram .nonogram-board-wrapper,html.force-mobile-layout #game-view-pipes .pipes-board-wrapper,html.force-mobile-layout #game-view-pipes .pipes-screen-container{width:100%!important;max-width:100%!important;margin-inline:auto!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-pipes #pipes-canvas{max-width:100%!important;height:auto!important}html.force-mobile-layout #game-view-nonogram .nonogram-board-wrapper{margin-bottom:6px!important}@media (max-width:640px){#game-view-sudoku #sudoku-top-bar.game-shared-top-bar{width:fit-content!important;max-width:100%!important;margin:0 auto 5px!important}#game-view-sudoku #sudoku-topbar-actions{flex-wrap:nowrap!important;gap:4px!important}#game-view-sudoku #sudoku-topbar-actions>.topbar-btn{flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;margin:0!important}#game-view-sudoku .mobile-game-stats{margin-bottom:5px!important}#game-view-sudoku .mobile-game-stats>*{height:46px!important;min-height:46px!important;grid-template-columns:15px minmax(0,1fr)!important;column-gap:4px!important;padding:4px 5px!important}#game-view-sudoku .mobile-game-stats>*>svg{width:15px!important;height:15px!important}#game-view-sudoku .mobile-game-stats .mobile-stat-label{font-size:9px!important}#game-view-sudoku .mobile-game-stats #board-diff-badge{font-size:9px!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;padding-inline:3px!important}#game-view-sudoku .mobile-game-stats .game-timer{position:relative!important}#game-view-sudoku .mobile-game-stats .game-timer .timer-digits{font-size:12px!important;padding-right:17px!important}#game-view-sudoku .mobile-game-stats .game-timer #btn-pause{position:absolute!important;right:3px!important;bottom:3px!important;width:19px!important;height:19px!important;margin:0!important;padding:2px!important}#game-view-sudoku .mobile-game-stats .game-timer #btn-pause svg{width:13px!important;height:13px!important}#game-view-sudoku .controls-column{gap:5px!important}#game-view-sudoku .controls-lower-area{display:contents!important}#game-view-sudoku .keypad-grid{order:0!important}#game-view-sudoku .keypad-grid .key-btn[data-digit]{height:43px!important;font-size:20px!important}#game-view-sudoku #sudoku-mobile-actions{display:grid!important;order:1!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:3px!important}#game-view-sudoku #sudoku-mobile-actions>button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:1px solid var(--btn-border)!important;border-radius:7px!important;background:var(--btn-bg)!important;color:var(--btn-text)!important;box-shadow:var(--key-shadow)!important}#game-view-sudoku #sudoku-mobile-actions>button.active{color:var(--accent-amber)!important;border-color:var(--accent-amber)!important;background:var(--btn-active-bg)!important}#game-view-sudoku #sudoku-mobile-actions>button svg{width:18px!important;height:18px!important}#game-view-sudoku #sudoku-drawing-panel{order:2!important}#game-view-sudoku #sudoku-mobile-drawing-tools{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important}#game-view-sudoku #sudoku-mobile-drawing-tools>button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;height:36px!important;padding:0!important}#game-view-sudoku #sudoku-drawing-panel #color-palette-bar{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;width:100%!important;gap:4px!important;margin:0!important;padding:0!important}#game-view-sudoku #sudoku-drawing-panel #color-palette-bar .color-swatch{flex:1 1 0!important;min-width:0!important;height:28px!important}#game-view-sudoku #sudoku-drawing-panel #color-palette-bar .color-swatch:nth-child(n+9){display:none!important}}html.force-mobile-layout #game-view-sudoku #sudoku-top-bar.game-shared-top-bar{width:fit-content!important;max-width:100%!important;margin:0 auto 5px!important}html.force-mobile-layout #game-view-sudoku #sudoku-topbar-actions{flex-wrap:nowrap!important;gap:4px!important}html.force-mobile-layout #game-view-sudoku #sudoku-topbar-actions>.topbar-btn{flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;margin:0!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats>*{height:46px!important;min-height:46px!important;grid-template-columns:15px minmax(0,1fr)!important;column-gap:4px!important;padding:4px 5px!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats>*>svg{width:15px!important;height:15px!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats .mobile-stat-label{font-size:9px!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats #board-diff-badge{font-size:9px!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;padding-inline:3px!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats .game-timer{position:relative!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats .game-timer .timer-digits{font-size:12px!important;padding-right:17px!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats .game-timer #btn-pause{position:absolute!important;right:3px!important;bottom:3px!important;width:19px!important;height:19px!important;margin:0!important;padding:2px!important;min-width:19px!important;min-height:19px!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats .game-timer #btn-pause svg{width:13px!important;height:13px!important}html.force-mobile-layout #game-view-sudoku .controls-column{gap:5px!important}html.force-mobile-layout #game-view-sudoku .controls-lower-area{display:contents!important}html.force-mobile-layout #game-view-sudoku .keypad-grid .key-btn[data-digit]{height:43px!important;font-size:20px!important}html.force-mobile-layout #game-view-sudoku #sudoku-mobile-actions{display:grid!important;order:1!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:3px!important}html.force-mobile-layout #game-view-sudoku #sudoku-mobile-actions>button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:1px solid var(--btn-border)!important;border-radius:7px!important;background:var(--btn-bg)!important;color:var(--btn-text)!important;box-shadow:var(--key-shadow)!important}html.force-mobile-layout #game-view-sudoku #sudoku-mobile-actions>button.active{color:var(--accent-amber)!important;border-color:var(--accent-amber)!important;background:var(--btn-active-bg)!important}html.force-mobile-layout #game-view-sudoku #sudoku-mobile-actions>button svg{width:18px!important;height:18px!important}html.force-mobile-layout #game-view-sudoku #sudoku-drawing-panel{order:2!important}html.force-mobile-layout #game-view-sudoku #sudoku-mobile-drawing-tools{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important}html.force-mobile-layout #game-view-sudoku #sudoku-mobile-drawing-tools>button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;height:36px!important;padding:0!important}html.force-mobile-layout #game-view-sudoku #sudoku-drawing-panel #color-palette-bar{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;width:100%!important;margin:0!important;padding:0!important}html.force-mobile-layout #game-view-sudoku #sudoku-drawing-panel #color-palette-bar .color-swatch{flex:1 1 0!important}html.force-mobile-layout #game-view-sudoku #sudoku-drawing-panel #color-palette-bar .color-swatch:nth-child(n+9){display:none!important}@media (max-width:640px){#game-view-sudoku .mobile-game-stats .game-timer #btn-pause{min-width:19px!important;min-height:19px!important}.app-header.header-expanded #game-menu-container{position:relative!important;z-index:1002!important}.app-header #game-menu-dropdown{z-index:1003!important;background-color:var(--bg-secondary)!important;opacity:1!important;animation:none!important}#game-view-sudoku #sudoku-drawing-panel #color-palette-bar{justify-content:space-between!important;gap:4px!important}#game-view-sudoku #sudoku-drawing-panel #color-palette-bar .color-swatch{box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;aspect-ratio:1!important;border-radius:50%!important;transform:none!important}#game-view-sudoku #sudoku-drawing-panel #color-palette-bar .color-swatch.active{outline:2px solid var(--text-main)!important;outline-offset:2px!important;transform:none!important}}html.force-mobile-layout .app-header #game-menu-dropdown{z-index:1003!important;background-color:var(--bg-secondary)!important;opacity:1!important;animation:none!important;top:52px!important;max-height:calc(100dvh - 64px)!important;box-shadow:0 18px 46px rgba(0,0,0,.5)!important}html.force-mobile-layout #game-view-sudoku #sudoku-drawing-panel #color-palette-bar{justify-content:space-between!important;gap:4px!important}html.force-mobile-layout #game-view-sudoku #sudoku-drawing-panel #color-palette-bar .color-swatch{box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;aspect-ratio:1!important;border-radius:50%!important;transform:none!important}html.force-mobile-layout #game-view-sudoku #sudoku-drawing-panel #color-palette-bar .color-swatch.active{outline:2px solid var(--text-main)!important;outline-offset:2px!important;transform:none!important}@media (min-width:821px){.app-header{min-height:60px;padding:8px clamp(16px,2vw,28px);gap:10px;box-sizing:border-box}.app-header .logo-brand-link{border-radius:8px}.app-header #btn-game-menu{min-height:36px;border-radius:10px}.app-header .header-controls,.app-header .header-right-group{gap:7px}}.app-header #btn-game-menu:focus-visible,.app-header .logo-brand-link:focus-visible,.app-header .mobile-header-actions button:focus-visible,.app-header .mobile-menu-toggle:focus-visible{outline:2px solid var(--accent-amber)!important;outline-offset:2px}@media (max-width:640px){html .app-header,html .app-header.header-expanded{height:52px!important;min-height:52px!important;max-height:52px!important;grid-template-columns:32px minmax(0,1fr) 72px 40px!important;column-gap:4px!important;padding-inline:8px!important}html .app-header .logo-icon-svg{width:30px!important;height:30px!important}html .app-header:not(.header-expanded) .logo-title{font-size:16px!important}html .app-header.header-expanded #game-menu-container{min-width:0!important}html .app-header.header-expanded #btn-game-menu{height:38px!important;min-height:38px!important;padding:0 8px!important;gap:5px!important;border:0!important;border-radius:9px!important;background:var(--bg-tertiary)!important;font-size:13px!important;font-weight:700!important}html .app-header.header-expanded #active-game-label{min-width:0!important;text-align:left!important}html .app-header.header-expanded .mobile-header-actions{width:72px!important;gap:0!important}html .app-header.header-expanded .mobile-header-actions>button{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:40px!important;min-height:40px!important;border:0!important;border-radius:9px!important;background:0 0!important}html .app-header .mobile-menu-toggle{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:9px 8px!important;border-radius:9px!important}html .app-header .mobile-menu-toggle:hover,html .app-header.header-expanded .mobile-menu-toggle{background:var(--btn-hover-bg)!important}html .app-header.header-expanded .game-controls-container{top:calc(100% - 1px)!important;min-height:48px!important;padding:6px 8px!important;gap:5px!important;z-index:1001!important}html .app-header.header-expanded .game-controls-container::after,html .app-header.header-expanded .game-controls-container::before{display:none!important;content:none!important}html .app-header.header-expanded .game-controls-container select{flex:1 1 auto!important;min-width:0!important;height:36px!important;padding:0 8px!important;border-radius:8px!important;font-size:13px!important}html .app-header.header-expanded #header-controls-sudoku .diff-select-group{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important}html .app-header.header-expanded #header-controls-sudoku #difficulty-select{width:100%!important;max-width:100%!important}html .app-header.header-expanded .game-controls-container .btn{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}html .app-header #game-menu-dropdown{top:52px!important;max-height:calc(100dvh - 64px)!important;box-shadow:0 18px 46px rgba(0,0,0,.5)!important}html .mobile-header-backdrop{top:52px!important}html .app-header.header-expanded .game-controls-container[style*="display: none"],html .app-header.header-expanded .game-controls-container[style*="display:none"]{display:none!important}}html.force-mobile-layout .app-header,html.force-mobile-layout .app-header.header-expanded{grid-template-columns:32px minmax(0,1fr) 72px 40px!important;padding-inline:8px!important}html.force-mobile-layout .app-header .logo-icon-svg{width:30px!important;height:30px!important}html.force-mobile-layout .app-header.header-expanded #btn-game-menu{height:38px!important;min-height:38px!important;padding:0 8px!important;gap:5px!important;border:0!important;border-radius:9px!important;background:var(--bg-tertiary)!important;font-size:13px!important;font-weight:700!important}html.force-mobile-layout .app-header.header-expanded #active-game-label{min-width:0!important;text-align:left!important}html.force-mobile-layout .app-header.header-expanded .mobile-header-actions{width:72px!important;gap:0!important;grid-column:3!important;grid-row:1!important}html.force-mobile-layout .app-header.header-expanded .mobile-header-actions>button{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:40px!important;min-height:40px!important;border:0!important;border-radius:9px!important;background:0 0!important}html.force-mobile-layout .app-header .mobile-menu-toggle:hover,html.force-mobile-layout .app-header.header-expanded .mobile-menu-toggle{background:var(--btn-hover-bg)!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container{top:calc(100% - 1px)!important;min-height:48px!important;padding:6px 8px!important;gap:5px!important;z-index:1001!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container::after,html.force-mobile-layout .app-header.header-expanded .game-controls-container::before{display:none!important;content:none!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container select{flex:1 1 auto!important;min-width:0!important;height:36px!important;padding:0 8px!important;border-radius:8px!important;font-size:13px!important}html.force-mobile-layout .app-header.header-expanded #header-controls-sudoku .diff-select-group{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important}html.force-mobile-layout .app-header.header-expanded #header-controls-sudoku #difficulty-select{width:100%!important;max-width:100%!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container .btn{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container[style*="display: none"],html.force-mobile-layout .app-header.header-expanded .game-controls-container[style*="display:none"]{display:none!important}@media (max-width:640px){html .app-header .mobile-menu-toggle,html .app-header.header-expanded .mobile-menu-toggle{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;box-sizing:border-box!important;padding:12px 9px!important;border-radius:9px!important;border:none!important;background:0 0!important;color:var(--text-main)!important;display:inline-flex!important;flex-direction:column!important;justify-content:space-between!important;align-items:stretch!important;box-shadow:none!important;cursor:pointer!important;position:relative!important;overflow:visible!important;transition:background .2s,border-color .2s,color .2s,box-shadow .2s,transform .15s!important}html .app-header .mobile-menu-toggle:hover{background:0 0!important;border:none!important;color:var(--accent-amber)!important;transform:translateY(-1px)!important;box-shadow:none!important}html .app-header .mobile-menu-toggle.is-active,html .app-header.header-expanded .mobile-menu-toggle{background:0 0!important;border:none!important;color:var(--accent-amber)!important;box-shadow:none!important}html .app-header .mobile-menu-toggle span{display:block!important;height:2px!important;min-height:2px!important;max-height:2px!important;border-radius:9999px!important;background:currentColor!important;transform-origin:center!important;position:relative!important;overflow:visible!important;transition:transform .35s cubic-bezier(.34, 1.56, .64, 1),width .3s cubic-bezier(.34, 1.56, .64, 1),opacity .22s,background-color .2s!important}html .app-header .mobile-menu-toggle span:first-child{width:22px!important;align-self:center!important;margin:0!important}html .app-header .mobile-menu-toggle span:nth-child(2){width:14px!important;align-self:flex-end!important;margin:0!important}html .app-header .mobile-menu-toggle span:nth-child(2)::before{content:''!important;position:absolute!important;left:-6.5px!important;top:50%!important;transform:translateY(-50%)!important;width:3px!important;height:3px!important;border-radius:50%!important;background:var(--accent-amber)!important;box-shadow:0 0 4px color-mix(in srgb,var(--accent-amber) 60%,transparent)!important;transition:.3s cubic-bezier(.34, 1.56, .64, 1)!important}html .app-header .mobile-menu-toggle span:last-child{width:17px!important;align-self:flex-start!important;margin:0!important}html .app-header .mobile-menu-toggle:hover span:nth-child(2){width:15px!important}html .app-header .mobile-menu-toggle:hover span:nth-child(2)::before{transform:translateY(-50%) scale(1.3)!important;box-shadow:0 0 6px var(--accent-amber)!important}html .app-header .mobile-menu-toggle:hover span:last-child{width:20px!important}html .app-header .mobile-menu-toggle.is-active span:first-child,html .app-header.header-expanded .mobile-menu-toggle span:first-child{width:20px!important;align-self:center!important;margin:0!important;transform:translateY(7px) rotate(45deg)!important}html .app-header .mobile-menu-toggle.is-active span:nth-child(2),html .app-header.header-expanded .mobile-menu-toggle span:nth-child(2){width:0!important;opacity:0!important;transform:scaleX(0)!important;pointer-events:none!important}html .app-header .mobile-menu-toggle.is-active span:nth-child(2)::before,html .app-header.header-expanded .mobile-menu-toggle span:nth-child(2)::before{opacity:0!important;transform:translateY(-50%) scale(0)!important}html .app-header .mobile-menu-toggle.is-active span:last-child,html .app-header.header-expanded .mobile-menu-toggle span:last-child{width:20px!important;align-self:center!important;margin:0!important;transform:translateY(-7px) rotate(-45deg)!important}}html.force-mobile-layout .app-header .mobile-menu-toggle,html.force-mobile-layout .app-header.header-expanded .mobile-menu-toggle{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;box-sizing:border-box!important;padding:12px 9px!important;border-radius:9px!important;border:none!important;background:0 0!important;color:var(--text-main)!important;display:inline-flex!important;flex-direction:column!important;justify-content:space-between!important;align-items:stretch!important;box-shadow:none!important;cursor:pointer!important;position:relative!important;overflow:visible!important;transition:background .2s,border-color .2s,color .2s,box-shadow .2s,transform .15s!important}html.force-mobile-layout .app-header .mobile-menu-toggle:hover{background:0 0!important;border:none!important;color:var(--accent-amber)!important;transform:translateY(-1px)!important;box-shadow:none!important}html.force-mobile-layout .app-header .mobile-menu-toggle.is-active,html.force-mobile-layout .app-header.header-expanded .mobile-menu-toggle{background:0 0!important;border:none!important;color:var(--accent-amber)!important;box-shadow:none!important}html.force-mobile-layout .app-header .mobile-menu-toggle span{display:block!important;height:2px!important;min-height:2px!important;max-height:2px!important;border-radius:9999px!important;background:currentColor!important;transform-origin:center!important;position:relative!important;overflow:visible!important;transition:transform .35s cubic-bezier(.34, 1.56, .64, 1),width .3s cubic-bezier(.34, 1.56, .64, 1),opacity .22s,background-color .2s!important}html.force-mobile-layout .app-header .mobile-menu-toggle span:first-child{width:22px!important;align-self:center!important;margin:0!important}html.force-mobile-layout .app-header .mobile-menu-toggle span:nth-child(2){width:14px!important;align-self:flex-end!important;margin:0!important}html.force-mobile-layout .app-header .mobile-menu-toggle span:nth-child(2)::before{content:''!important;position:absolute!important;left:-6.5px!important;top:50%!important;transform:translateY(-50%)!important;width:3px!important;height:3px!important;border-radius:50%!important;background:var(--accent-amber)!important;box-shadow:0 0 4px color-mix(in srgb,var(--accent-amber) 60%,transparent)!important;transition:.3s cubic-bezier(.34, 1.56, .64, 1)!important}html.force-mobile-layout .app-header .mobile-menu-toggle span:last-child{width:17px!important;align-self:flex-start!important;margin:0!important}html.force-mobile-layout .app-header .mobile-menu-toggle:hover span:nth-child(2){width:15px!important}html.force-mobile-layout .app-header .mobile-menu-toggle:hover span:nth-child(2)::before{transform:translateY(-50%) scale(1.3)!important;box-shadow:0 0 6px var(--accent-amber)!important}html.force-mobile-layout .app-header .mobile-menu-toggle:hover span:last-child{width:20px!important}html.force-mobile-layout .app-header .mobile-menu-toggle.is-active span:first-child,html.force-mobile-layout .app-header.header-expanded .mobile-menu-toggle span:first-child{width:20px!important;align-self:center!important;margin:0!important;transform:translateY(7px) rotate(45deg)!important}html.force-mobile-layout .app-header .mobile-menu-toggle.is-active span:nth-child(2),html.force-mobile-layout .app-header.header-expanded .mobile-menu-toggle span:nth-child(2){width:0!important;opacity:0!important;transform:scaleX(0)!important;pointer-events:none!important}html.force-mobile-layout .app-header .mobile-menu-toggle.is-active span:nth-child(2)::before,html.force-mobile-layout .app-header.header-expanded .mobile-menu-toggle span:nth-child(2)::before{opacity:0!important;transform:translateY(-50%) scale(0)!important}html.force-mobile-layout .app-header .mobile-menu-toggle.is-active span:last-child,html.force-mobile-layout .app-header.header-expanded .mobile-menu-toggle span:last-child{width:20px!important;align-self:center!important;margin:0!important;transform:translateY(-7px) rotate(-45deg)!important}@media (max-width:640px){html .app-header.header-expanded{height:auto!important;min-height:52px!important;max-height:none!important;grid-template-rows:40px auto!important;row-gap:2px!important;padding:6px 8px 8px!important;border-bottom:1px solid var(--border-color)!important;box-shadow:0 12px 24px rgba(0,0,0,.18)!important}html .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]){position:static!important;grid-column:1/-1!important;grid-row:2!important;top:auto!important;left:auto!important;right:auto!important;width:100%!important;min-height:42px!important;padding:4px 0 0!important;border:0!important;border-radius:0!important;background:0 0!important;box-shadow:none!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;gap:6px!important;box-sizing:border-box!important}html .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]) .btn,html .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]) .header-nav-btn{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}html .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]) :is(select,.select-input,.header-level-select,.diff-select-group){flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:36px!important;margin:0!important}html .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]) select{width:100%!important;min-width:0!important;text-align:center!important;text-align-last:center!important}html .app-header.header-expanded .game-controls-container :is([id*=new-game],[id$="-new"],#btn-new-game,.game-timer){display:none!important}html .mobile-header-backdrop{top:0!important}}html.force-mobile-layout .app-header.header-expanded{grid-template-rows:40px auto!important;row-gap:2px!important;border-bottom:1px solid var(--border-color)!important;box-shadow:0 12px 24px rgba(0,0,0,.18)!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]){grid-column:1/-1!important;grid-row:2!important;top:auto!important;background:0 0!important;box-shadow:none!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;gap:6px!important;box-sizing:border-box!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]) .btn,html.force-mobile-layout .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]) .header-nav-btn{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]) :is(select,.select-input,.header-level-select,.diff-select-group){flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:36px!important;margin:0!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]) select{width:100%!important;min-width:0!important;text-align:center!important;text-align-last:center!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container :is([id*=new-game],[id$="-new"],#btn-new-game,.game-timer){display:none!important}@media (max-width:640px){.mobile-game-stats:has(> :only-child){display:flex!important;justify-content:center!important;align-items:center!important}.mobile-game-stats>:only-child{grid-column:1/-1!important;justify-self:center!important;margin-inline:auto!important;width:min(100%,180px)!important;max-width:200px!important}}html.force-mobile-layout .mobile-game-stats:has(> :only-child){display:flex!important;justify-content:center!important;align-items:center!important}html.force-mobile-layout .mobile-game-stats>:only-child{grid-column:1/-1!important;justify-self:center!important;margin-inline:auto!important;width:min(100%,180px)!important;max-width:200px!important}@media (max-width:640px){html body #game-view-sudoku #sudoku-top-bar.game-shared-top-bar,html body .game-view .game-shared-top-bar{width:fit-content!important;max-width:100%!important;margin:0 auto 6px!important;display:inline-flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;border-radius:10px!important;padding:4px 5px!important;min-height:44px!important;box-sizing:border-box!important}html body #sudoku-top-bar .sudoku-topbar-actions>:is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon):not(.active):not(.is-active),html body .game-shared-top-bar :is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon,#btn-sound-toggle):not(.active):not(.is-active){width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;margin:0!important;border-radius:8px!important;border:1px solid var(--border-color)!important;background:var(--bg-tertiary)!important;color:var(--text-main)!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;box-shadow:none!important}html body #sudoku-top-bar .sudoku-topbar-actions>:is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon):is(.active,.is-active),html body .game-shared-top-bar :is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon):is(.active,.is-active){width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;margin:0!important;border-radius:8px!important;border:1px solid var(--btn-active-border,#f8a81d)!important;background:var(--btn-active-bg,#d97706)!important;color:var(--btn-active-text,#fff)!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;box-shadow:var(--btn-active-shadow,0 0 10px rgba(248,168,29,.4))!important}html body .game-shared-top-bar :is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon):is(.active,.is-active) :is(svg,span svg){stroke:var(--btn-active-text,#ffffff)!important;color:var(--btn-active-text,#fff)!important}html body #game-view-sudoku #sudoku-top-bar .sudoku-topbar-actions>button{flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important}html body .game-shared-top-bar #btn-sound-toggle{margin:0!important}html body #sudoku-top-bar .sudoku-topbar-actions>:is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon) :is(svg,span svg),html body .game-shared-top-bar :is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon) :is(svg,span svg,#mode-icon-container svg,.pipes-mode-icon svg,#pipes-mode-icon svg){width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;display:block!important;margin:auto!important;flex-shrink:0!important;color:inherit!important}html body .game-view .game-shared-top-bar :is(.topbar-stat,.topbar-badge,.mines-counter-badge){border-radius:8px!important}html body .game-shared-top-bar .topbar-group{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:4px!important}html body .game-view .game-shared-top-bar #btn-sound-toggle:focus-visible,html body .game-view .game-shared-top-bar .topbar-btn:focus-visible{outline:2px solid var(--accent-amber)!important;outline-offset:2px!important}}html.force-mobile-layout body #game-view-sudoku #sudoku-top-bar.game-shared-top-bar,html.force-mobile-layout body .game-view .game-shared-top-bar{width:fit-content!important;max-width:100%!important;margin:0 auto 6px!important;display:inline-flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;border-radius:10px!important;padding:4px 5px!important;min-height:44px!important;box-sizing:border-box!important}html.force-mobile-layout body #sudoku-top-bar .sudoku-topbar-actions>:is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon):not(.active):not(.is-active),html.force-mobile-layout body .game-shared-top-bar :is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon,#btn-sound-toggle):not(.active):not(.is-active){width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;margin:0!important;border-radius:8px!important;border:1px solid var(--border-color)!important;background:var(--bg-tertiary)!important;color:var(--text-main)!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;box-shadow:none!important}html.force-mobile-layout body #sudoku-top-bar .sudoku-topbar-actions>:is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon):is(.active,.is-active),html.force-mobile-layout body .game-shared-top-bar :is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon):is(.active,.is-active){width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;margin:0!important;border-radius:8px!important;border:1px solid var(--btn-active-border,#f8a81d)!important;background:var(--btn-active-bg,#d97706)!important;color:var(--btn-active-text,#fff)!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;box-shadow:var(--btn-active-shadow,0 0 10px rgba(248,168,29,.4))!important}html.force-mobile-layout body .game-shared-top-bar :is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon):is(.active,.is-active) :is(svg,span svg){stroke:var(--btn-active-text,#ffffff)!important;color:var(--btn-active-text,#fff)!important}html.force-mobile-layout body #game-view-sudoku #sudoku-top-bar .sudoku-topbar-actions>button{flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important}html.force-mobile-layout body .game-shared-top-bar #btn-sound-toggle{margin:0!important}html.force-mobile-layout body #sudoku-top-bar .sudoku-topbar-actions>:is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon) :is(svg,span svg),html.force-mobile-layout body .game-shared-top-bar :is(button,.topbar-btn,.header-nav-btn,.btn,.btn-icon) :is(svg,span svg,#mode-icon-container svg,.pipes-mode-icon svg,#pipes-mode-icon svg){width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;display:block!important;margin:auto!important;flex-shrink:0!important;color:inherit!important}html.force-mobile-layout body .game-view .game-shared-top-bar :is(.topbar-stat,.topbar-badge,.mines-counter-badge){border-radius:8px!important}html.force-mobile-layout body .game-shared-top-bar .topbar-group{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:4px!important}html.force-mobile-layout body .game-view .game-shared-top-bar #btn-sound-toggle:focus-visible,html.force-mobile-layout body .game-view .game-shared-top-bar .topbar-btn:focus-visible{outline:2px solid var(--accent-amber)!important;outline-offset:2px!important}html.force-mobile-layout body #game-view-pipes .game-shared-top-bar #btn-pipes-mode{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border-radius:8px!important}.sokoban-center-player,.sokoban-minimap{display:none}@media (max-width:640px){html body #game-view-pipes .game-shared-top-bar #btn-pipes-mode{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border-radius:8px!important}#game-view-sokoban .sokoban-viewport{position:relative!important;width:min(100%,calc(100vw - 8px))!important;max-width:calc(100vw - 8px)!important;margin:0 auto!important}#game-view-sokoban .sokoban-viewport.is-oversized{height:min(56dvh,460px)!important;min-height:180px!important}#game-view-sokoban .sokoban-canvas-container{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:hidden!important;align-items:center!important;justify-content:center!important;overscroll-behavior:contain!important;scrollbar-width:none!important;touch-action:pan-x pan-y!important}#game-view-sokoban .sokoban-viewport.is-oversized .sokoban-canvas-container{height:100%!important;max-height:100%!important;overflow:auto!important;align-items:flex-start!important;justify-content:flex-start!important}#game-view-sokoban .sokoban-canvas-container::-webkit-scrollbar{display:none!important}#game-view-sokoban .sokoban-canvas{max-width:none!important}#game-view-sokoban .sokoban-minimap{display:none}#game-view-sokoban .sokoban-viewport.is-oversized .sokoban-minimap{display:block!important;position:absolute!important;z-index:5!important;right:8px!important;bottom:8px!important;max-width:112px!important;border:1px solid var(--border-color)!important;border-radius:7px!important;background:var(--bg-card)!important;box-shadow:0 2px 10px rgba(0,0,0,.35)!important;opacity:.94!important;touch-action:none!important;cursor:crosshair!important}#game-view-sokoban .sokoban-center-player{display:none}#game-view-sokoban .sokoban-viewport.is-oversized .sokoban-center-player{display:grid!important;place-items:center!important;position:absolute!important;z-index:6!important;top:8px!important;right:8px!important;width:36px!important;height:36px!important;padding:0!important;border:1px solid var(--border-color)!important;border-radius:9px!important;color:var(--text-main)!important;background:var(--bg-card)!important;box-shadow:0 2px 8px rgba(0,0,0,.28)!important;touch-action:manipulation!important}#game-view-sokoban .sokoban-center-player:active{transform:scale(.94)}#game-view-caro .caro-descs-bar{display:none!important}#game-view-caro .caro-board-wrapper{width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0 auto!important;border:0!important;box-shadow:none!important;background:0 0!important}#game-view-caro .caro-canvas-container{position:relative!important;width:100%!important;max-width:100%!important;padding:0!important;margin:0 auto!important;overflow:visible!important}#game-view-caro .caro-canvas{max-width:none!important;flex:0 0 auto!important;touch-action:none!important}#game-view-caro .caro-svg-overlay{position:absolute!important;inset:0 auto auto 50%!important;transform:translateX(-50%)!important;pointer-events:none!important;display:block!important}#game-view-caro .mobile-game-stats #caro-turn-indicator{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;height:48px!important;min-height:48px!important;padding:5px 8px!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}#game-view-caro .mobile-game-stats #caro-turn-indicator .caro-current-mark{grid-column:1!important;grid-row:1/3!important;place-self:center!important;order:1!important;width:20px!important;height:20px!important;min-width:20px!important;border-radius:50%!important;font-size:12px!important;font-weight:800!important;line-height:1!important;display:grid!important;place-items:center!important;background:var(--bg-tertiary);color:var(--text-muted)}#game-view-caro .mobile-game-stats #caro-turn-indicator .mobile-stat-label{grid-column:2!important;grid-row:1!important;order:2!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;font-weight:700!important;color:var(--text-muted)!important;line-height:1.1!important;text-transform:uppercase!important;letter-spacing:.02em!important}#game-view-caro .mobile-game-stats #caro-turn-indicator .caro-current-player{grid-column:2!important;grid-row:2!important;order:3!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important;font-weight:800!important;line-height:1.15!important;color:var(--text-main)!important}}html.force-mobile-layout #game-view-sokoban .sokoban-viewport{position:relative!important;width:min(100%,calc(100vw - 8px))!important;max-width:calc(100vw - 8px)!important;margin:0 auto!important}html.force-mobile-layout #game-view-sokoban .sokoban-viewport.is-oversized{height:min(56dvh,460px)!important;min-height:180px!important}html.force-mobile-layout #game-view-sokoban .sokoban-canvas-container{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:hidden!important;align-items:center!important;justify-content:center!important;overscroll-behavior:contain!important;scrollbar-width:none!important;touch-action:pan-x pan-y!important}html.force-mobile-layout #game-view-sokoban .sokoban-viewport.is-oversized .sokoban-canvas-container{height:100%!important;max-height:100%!important;overflow:auto!important;align-items:flex-start!important;justify-content:flex-start!important}html.force-mobile-layout #game-view-sokoban .sokoban-canvas-container::-webkit-scrollbar{display:none!important}html.force-mobile-layout #game-view-sokoban .sokoban-canvas{max-width:none!important}html.force-mobile-layout #game-view-sokoban .sokoban-minimap{display:none}html.force-mobile-layout #game-view-sokoban .sokoban-viewport.is-oversized .sokoban-minimap{display:block!important;position:absolute!important;z-index:5!important;right:8px!important;bottom:8px!important;max-width:112px!important;border:1px solid var(--border-color)!important;border-radius:7px!important;background:var(--bg-card)!important;box-shadow:0 2px 10px rgba(0,0,0,.35)!important;opacity:.94!important;touch-action:none!important;cursor:crosshair!important}html.force-mobile-layout #game-view-sokoban .sokoban-center-player{display:none}html.force-mobile-layout #game-view-sokoban .sokoban-viewport.is-oversized .sokoban-center-player{display:grid!important;place-items:center!important;position:absolute!important;z-index:6!important;top:8px!important;right:8px!important;width:36px!important;height:36px!important;padding:0!important;border:1px solid var(--border-color)!important;border-radius:9px!important;color:var(--text-main)!important;background:var(--bg-card)!important;box-shadow:0 2px 8px rgba(0,0,0,.28)!important;touch-action:manipulation!important}html.force-mobile-layout #game-view-caro .caro-descs-bar{display:none!important}html.force-mobile-layout #game-view-caro .caro-board-wrapper{width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0 auto!important;border:0!important;box-shadow:none!important;background:0 0!important}html.force-mobile-layout #game-view-caro .caro-canvas-container{position:relative!important;width:100%!important;max-width:100%!important;padding:0!important;margin:0 auto!important;overflow:visible!important}html.force-mobile-layout #game-view-caro .caro-canvas{max-width:none!important;flex:0 0 auto!important;touch-action:none!important}html.force-mobile-layout #game-view-caro .caro-svg-overlay{position:absolute!important;inset:0 auto auto 50%!important;transform:translateX(-50%)!important;pointer-events:none!important;display:block!important}html.force-mobile-layout #game-view-caro .mobile-game-stats #caro-turn-indicator{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;height:48px!important;min-height:48px!important;padding:5px 8px!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout #game-view-caro .mobile-game-stats #caro-turn-indicator .caro-current-mark{grid-column:1!important;grid-row:1/3!important;place-self:center!important;order:1!important;width:20px!important;height:20px!important;min-width:20px!important;border-radius:50%!important;font-size:12px!important;font-weight:800!important;line-height:1!important;display:grid!important;place-items:center!important;background:var(--bg-tertiary);color:var(--text-muted)}html.force-mobile-layout #game-view-caro .mobile-game-stats #caro-turn-indicator .mobile-stat-label{grid-column:2!important;grid-row:1!important;order:2!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;font-weight:700!important;color:var(--text-muted)!important;line-height:1.1!important;text-transform:uppercase!important;letter-spacing:.02em!important}html.force-mobile-layout #game-view-caro .mobile-game-stats #caro-turn-indicator .caro-current-player{grid-column:2!important;grid-row:2!important;order:3!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important;font-weight:800!important;line-height:1.15!important;color:var(--text-main)!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-player-turn{background:color-mix(in srgb,var(--accent-emerald) 12%,var(--bg-secondary))!important;border-color:color-mix(in srgb,var(--accent-emerald) 42%,var(--border-color))!important;color:var(--accent-emerald)!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-player-turn .caro-current-mark{background:var(--accent-emerald)!important;color:#fff!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-player-turn .caro-current-player{color:var(--accent-emerald)!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-opponent-turn{background:color-mix(in srgb,var(--accent-red) 12%,var(--bg-secondary))!important;border-color:color-mix(in srgb,var(--accent-red) 42%,var(--border-color))!important;color:var(--accent-red)!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-opponent-turn .caro-current-mark{background:var(--accent-red)!important;color:#fff!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-opponent-turn .caro-current-player{color:var(--accent-red)!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-game-over{background:color-mix(in srgb,var(--accent-amber) 12%,var(--bg-secondary))!important;border-color:color-mix(in srgb,var(--accent-amber) 44%,var(--border-color))!important;color:var(--accent-amber)!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-game-over .caro-current-mark{background:var(--accent-amber)!important;color:#fff!important}#game-view-caro :is(.mobile-game-stats,.game-stats-strip) #caro-turn-indicator.is-game-over .caro-current-player{color:var(--accent-amber)!important}@media (max-width:640px){.app-header.header-expanded #header-controls-sokoban:not([style*="display: none"]):not([style*="display:none"]){display:flex!important;width:min(100%,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;flex:1 1 100%!important;justify-content:center!important;gap:5px!important}.app-header.header-expanded #header-controls-sokoban:not([style*="display: none"]):not([style*="display:none"]) #sokoban-jump{flex:1 1 190px!important;width:auto!important;min-width:min(180px,calc(100vw - 160px))!important;max-width:none!important;height:42px!important;min-height:42px!important;padding:0 28px 0 11px!important;font-size:14px!important;text-align:left!important;text-align-last:left!important}#game-view-game2048 .game2048-status-bar{display:none!important}}html.force-mobile-layout .app-header.header-expanded #header-controls-sokoban:not([style*="display: none"]):not([style*="display:none"]){display:flex!important;width:min(100%,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;flex:1 1 100%!important;justify-content:center!important;gap:5px!important}html.force-mobile-layout .app-header.header-expanded #header-controls-sokoban:not([style*="display: none"]):not([style*="display:none"]) #sokoban-jump{flex:1 1 190px!important;width:auto!important;min-width:min(180px,calc(100vw - 160px))!important;max-width:none!important;height:42px!important;min-height:42px!important;padding:0 28px 0 11px!important;font-size:14px!important;text-align:left!important;text-align-last:left!important}html.force-mobile-layout #game-view-game2048 .game2048-status-bar{display:none!important}.logo-title#header-brand-name{border:0!important;padding:0!important;background:0 0!important;-webkit-text-fill-color:var(--text-main)!important;display:inline-flex!important;align-items:center!important;gap:5px!important;min-width:0!important;max-width:100%!important;font-family:inherit!important;font-weight:700!important;line-height:1.1;cursor:pointer}.logo-title#header-brand-name .brand-site-name{flex:0 0 auto;background:var(--logo-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.logo-title#header-brand-name .brand-heart{flex:0 0 15px;width:15px;height:15px;color:var(--accent-red)}.logo-title#header-brand-name .brand-game-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-main);-webkit-text-fill-color:var(--text-main);font-size:.88em}@media (max-width:640px){html .app-header,html .app-header.header-expanded{position:relative!important;height:52px!important;min-height:52px!important;max-height:52px!important;overflow:visible!important;grid-template-columns:32px minmax(0,1fr) 72px 40px!important;grid-template-rows:40px!important;align-content:center!important;column-gap:4px!important;row-gap:0!important;padding:0 8px!important;box-sizing:border-box!important}html .app-header .logo-area>#header-brand-logo{grid-column:1!important;grid-row:1!important}html .app-header:not(.header-expanded){grid-template-columns:32px minmax(0,1fr) 40px!important}html .app-header:not(.header-expanded) #header-brand-name{display:inline-flex!important;grid-column:2!important;grid-row:1!important;justify-self:start!important;width:100%!important;font-size:16px!important;white-space:nowrap!important}html .app-header:not(.header-expanded) .mobile-menu-toggle{grid-column:3!important}html .app-header.header-expanded #header-brand-name{display:none!important}html .app-header.header-expanded #game-menu-container{grid-column:2!important;grid-row:1!important}html .app-header.header-expanded .mobile-header-actions{grid-column:3!important;grid-row:1!important}html .app-header .mobile-menu-toggle{grid-column:4!important;grid-row:1!important}html .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]){position:absolute!important;top:calc(100% - 1px)!important;left:0!important;right:0!important;z-index:1001!important;grid-row:auto!important;width:100%!important;min-height:48px!important;padding:6px 8px!important;border:0!important;border-bottom:1px solid var(--border-color)!important;border-radius:0 0 12px 12px!important;background:var(--bg-secondary)!important;box-shadow:0 10px 24px rgba(0,0,0,.25)!important;box-sizing:border-box!important}html .mobile-header-backdrop{top:0!important}.game-view>.unified-game-layout,.game-view>[class*="-game-layout"]{padding-top:6px!important;row-gap:5px!important}#game-view-sudoku #sudoku-top-bar,.game-view .game-shared-top-bar{margin-top:2px!important;margin-bottom:4px!important}.game-view .mobile-game-stats{margin-top:0!important;margin-bottom:4px!important;gap:5px!important}.game-view .game-screen-container{margin-top:0!important;margin-bottom:0!important}#game-view-sudoku .main-layout{padding-top:6px!important;gap:5px!important}}html.force-mobile-layout .app-header,html.force-mobile-layout .app-header.header-expanded{position:relative!important;height:52px!important;min-height:52px!important;max-height:52px!important;overflow:visible!important;grid-template-columns:32px minmax(0,1fr) 72px 40px!important;grid-template-rows:40px!important;align-content:center!important;column-gap:4px!important;row-gap:0!important;padding:0 8px!important;box-sizing:border-box!important}html.force-mobile-layout .app-header .logo-area>#header-brand-logo{grid-column:1!important;grid-row:1!important}html.force-mobile-layout .app-header:not(.header-expanded){grid-template-columns:32px minmax(0,1fr) 40px!important}html.force-mobile-layout .app-header:not(.header-expanded) #header-brand-name{display:inline-flex!important;grid-column:2!important;grid-row:1!important;justify-self:start!important;width:100%!important;font-size:16px!important;white-space:nowrap!important}html.force-mobile-layout .app-header:not(.header-expanded) .mobile-menu-toggle{grid-column:3!important}html.force-mobile-layout .app-header.header-expanded #header-brand-name{display:none!important}html.force-mobile-layout .app-header.header-expanded #game-menu-container{position:relative!important;z-index:1002!important;grid-column:2!important;grid-row:1!important}html.force-mobile-layout .app-header .mobile-menu-toggle{grid-column:4!important;grid-row:1!important}html.force-mobile-layout .app-header.header-expanded .game-controls-container:not([style*="display: none"]):not([style*="display:none"]){position:absolute!important;top:calc(100% - 1px)!important;left:0!important;right:0!important;z-index:1001!important;grid-row:auto!important;width:100%!important;min-height:48px!important;padding:6px 8px!important;border:0!important;border-bottom:1px solid var(--border-color)!important;border-radius:0 0 12px 12px!important;background:var(--bg-secondary)!important;box-shadow:0 10px 24px rgba(0,0,0,.25)!important;box-sizing:border-box!important}html.force-mobile-layout .mobile-header-backdrop{top:0!important}html.force-mobile-layout .game-view>[class*="-game-layout"]{padding-top:6px!important;row-gap:5px!important}html.force-mobile-layout #game-view-sudoku #sudoku-top-bar,html.force-mobile-layout .game-view .game-shared-top-bar{margin-top:2px!important;margin-bottom:4px!important}html.force-mobile-layout .game-view .mobile-game-stats{gap:5px!important;width:calc(100% - 20px)!important;max-width:560px!important;margin:0 auto 4px!important;box-sizing:border-box!important}html.force-mobile-layout .game-view .game-screen-container{margin-top:0!important;margin-bottom:0!important}html.force-mobile-layout #game-view-sudoku .main-layout{padding-top:6px!important;gap:5px!important}@media (max-width:640px){#mastermind-board.mastermind-board-wrapper{padding:10px 8px!important;gap:8px!important;max-width:100%!important}#mastermind-board #mastermind-hint-container{order:0!important;width:100%!important}#mastermind-board .mastermind-secret-area{order:1!important;width:100%!important;margin:0 0 4px!important}#mastermind-board .mastermind-picker-area{order:2!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;padding:6px 8px!important;margin:0 0 6px!important;border-top:1px solid var(--border-color)!important;border-bottom:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;box-sizing:border-box!important}#mastermind-board .mastermind-palette{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:4px!important;flex:0 1 auto!important;width:auto!important}#mastermind-board .mm-palette-btn{padding:2px!important;margin:0!important;gap:0!important}#mastermind-board .palette-circle{width:clamp(26px,6.8vw,32px)!important;height:clamp(26px,6.8vw,32px)!important}#mastermind-board .mm-palette-btn.number-palette-btn{width:clamp(28px,7.2vw,34px)!important;height:clamp(28px,7.2vw,34px)!important;font-size:14px!important;border-radius:6px!important}#mastermind-board .palette-key-badge{display:none!important}#mastermind-board .mastermind-submit-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:36px!important;max-width:none!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0 10px!important;margin:0!important;border-radius:8px!important;font-size:13px!important;font-weight:700!important;gap:4px!important;flex-shrink:0!important;align-self:center!important;box-shadow:none!important}#mastermind-board .mastermind-submit-btn svg{width:15px!important;height:15px!important;flex-shrink:0!important}#mastermind-board .mastermind-rows-list{order:3!important;width:100%!important;display:flex!important;flex-direction:column!important;gap:6px!important}#mastermind-board .mastermind-row{min-height:44px!important;padding:4px 8px!important;gap:6px!important;border-radius:8px!important}#mastermind-board .row-num-badge{font-size:11.5px!important;width:30px!important;min-width:30px!important}#mastermind-board .mastermind-row[data-slots="5"] .row-num-badge{width:32px!important;min-width:32px!important}#mastermind-board .mm-peg{width:clamp(26px,6.8vw,32px)!important;height:clamp(26px,6.8vw,32px)!important}#mastermind-board .mm-peg.secret-peg{width:clamp(28px,7vw,34px)!important;height:clamp(28px,7vw,34px)!important}#mastermind-board .secret-code-row{min-height:44px!important;padding:6px 8px!important;margin-bottom:0!important}#mastermind-board .secret-badge{left:8px!important;padding:2px 6px!important;font-size:11px!important;min-width:36px!important}}html.force-mobile-layout #mastermind-board.mastermind-board-wrapper{padding:10px 8px!important;gap:8px!important;max-width:100%!important}html.force-mobile-layout #mastermind-board #mastermind-hint-container{order:0!important;width:100%!important}html.force-mobile-layout #mastermind-board .mastermind-secret-area{order:1!important;width:100%!important;margin:0 0 4px!important}html.force-mobile-layout #mastermind-board .mastermind-picker-area{order:2!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;padding:6px 8px!important;margin:0 0 6px!important;border-top:1px solid var(--border-color)!important;border-bottom:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;box-sizing:border-box!important}html.force-mobile-layout #mastermind-board .mastermind-palette{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:4px!important;flex:0 1 auto!important;width:auto!important}html.force-mobile-layout #mastermind-board .mm-palette-btn{padding:2px!important;margin:0!important;gap:0!important}html.force-mobile-layout #mastermind-board .palette-circle{width:clamp(26px,6.8vw,32px)!important;height:clamp(26px,6.8vw,32px)!important}html.force-mobile-layout #mastermind-board .mm-palette-btn.number-palette-btn{width:clamp(28px,7.2vw,34px)!important;height:clamp(28px,7.2vw,34px)!important;font-size:14px!important;border-radius:6px!important}html.force-mobile-layout #mastermind-board .palette-key-badge{display:none!important}html.force-mobile-layout #mastermind-board .mastermind-submit-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:36px!important;max-width:none!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0 10px!important;margin:0!important;border-radius:8px!important;font-size:13px!important;font-weight:700!important;gap:4px!important;flex-shrink:0!important;align-self:center!important;box-shadow:none!important}html.force-mobile-layout #mastermind-board .mastermind-submit-btn svg{width:15px!important;height:15px!important;flex-shrink:0!important}html.force-mobile-layout #mastermind-board .mastermind-rows-list{order:3!important;width:100%!important;display:flex!important;flex-direction:column!important;gap:6px!important}html.force-mobile-layout #mastermind-board .mastermind-row{min-height:44px!important;padding:4px 8px!important;gap:6px!important;border-radius:8px!important}html.force-mobile-layout #mastermind-board .row-num-badge{font-size:11.5px!important;width:30px!important;min-width:30px!important}html.force-mobile-layout #mastermind-board .mastermind-row[data-slots="5"] .row-num-badge{width:32px!important;min-width:32px!important}html.force-mobile-layout #mastermind-board .mm-peg{width:clamp(26px,6.8vw,32px)!important;height:clamp(26px,6.8vw,32px)!important}html.force-mobile-layout #mastermind-board .mm-peg.secret-peg{width:clamp(28px,7vw,34px)!important;height:clamp(28px,7vw,34px)!important}html.force-mobile-layout #mastermind-board .secret-code-row{min-height:44px!important;padding:6px 8px!important;margin-bottom:0!important}html.force-mobile-layout #mastermind-board .secret-badge{left:8px!important;padding:2px 6px!important;font-size:11px!important;min-width:36px!important}@media (max-width:640px){#game-view-matchsticks .mobile-game-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:2px 0 6px!important;box-sizing:border-box!important}#game-view-matchsticks .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 7px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}#game-view-matchsticks .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}#game-view-matchsticks .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}#game-view-matchsticks .mobile-game-stats :is(.timer-digits,.matchsticks-status-count,.stat-num){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}#game-view-matchsticks .matchsticks-status-bar{min-height:30px!important;padding:4px 8px!important;margin-bottom:6px!important;font-size:13px!important}#game-view-matchsticks .matchsticks-status-bar .matchsticks-status-divider{display:none!important}#matchsticks-board.matchsticks-board-wrapper{width:100%!important;max-width:100%!important;height:auto!important;min-height:180px!important;padding:10px 4px!important;gap:8px!important;box-sizing:border-box!important;overflow:hidden!important}#matchsticks-equation.matchsticks-equation-container{width:100%!important;max-width:100%!important;min-height:140px!important;height:auto!important;padding:4px 0!important;overflow:hidden!important;overflow-x:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}.matchsticks-equation-slots{display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(4px,1.8vw,10px)!important;flex-shrink:0!important;transform-origin:center center!important}.matchstick{touch-action:manipulation!important}}html.force-mobile-layout #game-view-matchsticks .mobile-game-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:2px 0 6px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-matchsticks .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:6px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 7px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout #game-view-matchsticks .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}html.force-mobile-layout #game-view-matchsticks .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}html.force-mobile-layout #game-view-matchsticks .mobile-game-stats :is(.timer-digits,.matchsticks-status-count,.stat-num){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}html.force-mobile-layout #game-view-matchsticks .matchsticks-status-bar{min-height:30px!important;padding:4px 8px!important;margin-bottom:6px!important;font-size:13px!important}html.force-mobile-layout #game-view-matchsticks .matchsticks-status-bar .matchsticks-status-divider{display:none!important}html.force-mobile-layout #matchsticks-board.matchsticks-board-wrapper{width:100%!important;max-width:100%!important;height:auto!important;min-height:180px!important;padding:10px 4px!important;gap:8px!important;box-sizing:border-box!important;overflow:hidden!important}html.force-mobile-layout #matchsticks-equation.matchsticks-equation-container{width:100%!important;max-width:100%!important;min-height:140px!important;height:auto!important;padding:4px 0!important;overflow:hidden!important;overflow-x:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}html.force-mobile-layout .matchsticks-equation-slots{display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(4px,1.8vw,10px)!important;flex-shrink:0!important;transform-origin:center center!important}html.force-mobile-layout .matchstick{touch-action:manipulation!important}@media (max-width:640px){#game-view-nim .nim-rule-card{display:none!important}#game-view-nim .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:2px 0 6px!important;box-sizing:border-box!important}#game-view-nim .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:5px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 6px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}#game-view-nim .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}#game-view-nim .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}#game-view-nim .mobile-game-stats :is(.timer-digits,.stat-num,#nim-total-val,#nim-rule-val){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:13.5px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}#game-view-nim .mobile-game-stats #nim-rule-stat{display:grid!important;cursor:pointer!important;user-select:none!important;transition:transform .1s,border-color .15s,background .15s!important}#game-view-nim .mobile-game-stats #nim-rule-stat:hover{border-color:var(--accent-amber)!important}#game-view-nim .mobile-game-stats #nim-rule-stat:active{transform:scale(.97)!important;border-color:var(--accent-amber)!important}#game-view-nim .mobile-game-stats #nim-rule-stat:focus-visible{outline:2px solid var(--accent-amber)!important;outline-offset:2px!important}}html.force-mobile-layout #game-view-nim .nim-rule-card{display:none!important}html.force-mobile-layout #game-view-nim .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:2px 0 6px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-nim .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:5px!important;row-gap:1px!important;width:100%!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:5px 6px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout #game-view-nim .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}html.force-mobile-layout #game-view-nim .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}html.force-mobile-layout #game-view-nim .mobile-game-stats :is(.timer-digits,.stat-num,#nim-total-val,#nim-rule-val){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:13.5px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}html.force-mobile-layout #game-view-nim .mobile-game-stats #nim-rule-stat{display:grid!important;cursor:pointer!important;user-select:none!important;transition:transform .1s,border-color .15s,background .15s!important}html.force-mobile-layout #game-view-nim .mobile-game-stats #nim-rule-stat:hover{border-color:var(--accent-amber)!important}html.force-mobile-layout #game-view-nim .mobile-game-stats #nim-rule-stat:active{transform:scale(.97)!important;border-color:var(--accent-amber)!important}html.force-mobile-layout #game-view-nim .mobile-game-stats #nim-rule-stat:focus-visible{outline:2px solid var(--accent-amber)!important;outline-offset:2px!important}@media (max-width:640px){#game-view-maze #maze-status-text,#game-view-maze .maze-status-bar{display:none!important}#game-view-maze .maze-game-layout{width:100vw!important;max-width:100vw!important;padding:2px 4px 6px!important;margin:0!important;gap:4px!important;box-sizing:border-box!important}#game-view-maze .maze-top-bar{margin:0 auto 3px!important}#game-view-maze .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 4px!important;box-sizing:border-box!important}#game-view-maze .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:5px!important;row-gap:1px!important;width:100%!important;height:44px!important;min-height:44px!important;min-width:0!important;padding:4px 6px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}#game-view-maze .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}#game-view-maze .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}#game-view-maze .mobile-game-stats :is(.timer-digits,.stat-num){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:13.5px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}#game-view-maze .maze-board-wrapper,#game-view-maze .maze-screen-container{width:100%!important;max-width:100vw!important;padding:0!important;margin:0 auto!important;border:none!important;background:0 0!important;box-shadow:none!important}#game-view-maze .maze-canvas-container{padding:0!important;margin:0 auto!important}#game-view-maze .maze-dpad{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:8px!important;margin:6px auto 2px!important;width:100%!important;max-width:min(92vw,360px)!important}#game-view-maze .maze-dpad .dpad-btn{height:44px!important;min-height:44px!important;max-height:44px!important;border-radius:9px!important;flex:1 1 0!important;padding:0!important}}html.force-mobile-layout #game-view-maze #maze-status-text,html.force-mobile-layout #game-view-maze .maze-status-bar{display:none!important}html.force-mobile-layout #game-view-maze .maze-game-layout{width:100vw!important;max-width:100vw!important;padding:2px 4px 6px!important;margin:0!important;gap:4px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-maze .maze-top-bar{margin:0 auto 3px!important}html.force-mobile-layout #game-view-maze .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 4px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-maze .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:5px!important;row-gap:1px!important;width:100%!important;height:44px!important;min-height:44px!important;min-width:0!important;padding:4px 6px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout #game-view-maze .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}html.force-mobile-layout #game-view-maze .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}html.force-mobile-layout #game-view-maze .mobile-game-stats :is(.timer-digits,.stat-num){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:13.5px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}html.force-mobile-layout #game-view-maze .maze-board-wrapper,html.force-mobile-layout #game-view-maze .maze-screen-container{width:100%!important;max-width:100vw!important;padding:0!important;margin:0 auto!important;border:none!important;background:0 0!important;box-shadow:none!important}html.force-mobile-layout #game-view-maze .maze-canvas-container{padding:0!important;margin:0 auto!important}html.force-mobile-layout #game-view-maze .maze-dpad{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:8px!important;margin:6px auto 2px!important;width:100%!important;max-width:min(92vw,360px)!important}html.force-mobile-layout #game-view-maze .maze-dpad .dpad-btn{height:44px!important;min-height:44px!important;max-height:44px!important;border-radius:9px!important;flex:1 1 0!important;padding:0!important}@media (max-width:640px){#game-view-pipes #pipes-status-text,#game-view-pipes .pipes-status-bar{display:none!important}#game-view-pipes .pipes-game-layout{width:100vw!important;max-width:100vw!important;padding:2px 4px 8px!important;margin:0!important;gap:4px!important;box-sizing:border-box!important}#game-view-pipes .pipes-top-bar{margin:0 auto 3px!important}#game-view-pipes .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 4px!important;box-sizing:border-box!important}#game-view-pipes .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:5px!important;row-gap:1px!important;width:100%!important;height:44px!important;min-height:44px!important;min-width:0!important;padding:4px 6px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}#game-view-pipes .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}#game-view-pipes .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}#game-view-pipes .mobile-game-stats :is(.timer-digits,.stat-num,#pipes-flow-val){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:13px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}#game-view-pipes .pipes-board-wrapper,#game-view-pipes .pipes-screen-container{width:100%!important;max-width:100vw!important;padding:0!important;margin:0 auto!important;border:none!important;background:0 0!important;box-shadow:none!important}#game-view-pipes #pipes-canvas-container{padding:0!important;margin:0 auto!important}#game-view-tangram .tangram-bg,.tangram-bg,[data-theme] .tangram-bg{fill:transparent!important;fill-opacity:0!important;opacity:0!important}}html.force-mobile-layout #game-view-pipes #pipes-status-text,html.force-mobile-layout #game-view-pipes .pipes-status-bar{display:none!important}html.force-mobile-layout #game-view-pipes .pipes-game-layout{width:100vw!important;max-width:100vw!important;padding:2px 4px 8px!important;margin:0!important;gap:4px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-pipes .pipes-top-bar{margin:0 auto 3px!important}html.force-mobile-layout #game-view-pipes .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 4px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-pipes .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:5px!important;row-gap:1px!important;width:100%!important;height:44px!important;min-height:44px!important;min-width:0!important;padding:4px 6px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout #game-view-pipes .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}html.force-mobile-layout #game-view-pipes .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}html.force-mobile-layout #game-view-pipes .mobile-game-stats :is(.timer-digits,.stat-num,#pipes-flow-val){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:13px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}html.force-mobile-layout #game-view-pipes .pipes-board-wrapper,html.force-mobile-layout #game-view-pipes .pipes-screen-container{width:100%!important;max-width:100vw!important;padding:0!important;margin:0 auto!important;border:none!important;background:0 0!important;box-shadow:none!important}html.force-mobile-layout #game-view-pipes #pipes-canvas-container{max-width:100%!important;margin-inline:auto!important;box-sizing:border-box!important;padding:0!important;margin:0 auto!important}html.force-mobile-layout #game-view-tangram .tangram-bg,html.force-mobile-layout .tangram-bg,html.force-mobile-layout [data-theme] .tangram-bg{fill:transparent!important;fill-opacity:0!important;opacity:0!important}@media (max-width:640px){#game-view-sokoban #sokoban-stars-box,#game-view-sokoban #sokoban-status-text,#game-view-sokoban .sokoban-status-bar,#game-view-sokoban .topbar-stars{display:none!important}#game-view-sokoban .sokoban-game-layout{width:100vw!important;max-width:100vw!important;padding:2px 4px 6px!important;margin:0!important;gap:4px!important;box-sizing:border-box!important}#game-view-sokoban .sokoban-top-bar{margin:0 auto 3px!important}#game-view-sokoban .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 4px!important;box-sizing:border-box!important}#game-view-sokoban .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:5px!important;row-gap:1px!important;width:100%!important;height:44px!important;min-height:44px!important;min-width:0!important;padding:4px 6px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}#game-view-sokoban .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}#game-view-sokoban .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}#game-view-sokoban .mobile-game-stats :is(.timer-digits,.stat-num){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:13.5px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}#game-view-sokoban .sokoban-board-wrapper,#game-view-sokoban .sokoban-screen-container{width:100%!important;max-width:100vw!important;padding:0!important;margin:0 auto!important;border:none!important;background:0 0!important;box-shadow:none!important}#game-view-sokoban .sokoban-canvas-container{padding:0!important;margin:0 auto!important}#game-view-sokoban .sokoban-dpad{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:8px!important;margin:6px auto 2px!important;width:100%!important;max-width:min(92vw,360px)!important}#game-view-sokoban .sokoban-dpad .dpad-btn{height:44px!important;min-height:44px!important;max-height:44px!important;border-radius:9px!important;flex:1 1 0!important;padding:0!important}#game-view-maze .maze-game-layout,#game-view-pipes .pipes-game-layout,#game-view-sokoban .sokoban-game-layout,#game-view-sudoku .main-layout,.game-view .unified-game-layout{padding-top:clamp(14px,2.5dvh,24px)!important}#game-view-sudoku #sudoku-top-bar.game-shared-top-bar,.game-view .unified-game-layout>.game-shared-top-bar{margin-top:0!important;margin-bottom:8px!important}#game-view-sudoku .mobile-game-stats,.game-view .unified-game-layout>.mobile-game-stats{margin-top:0!important;margin-bottom:10px!important}.game-view .unified-game-layout>.game-screen-container{margin-top:0!important}#game-view-nonogram .mobile-game-stats,#game-view-slitherlink .mobile-game-stats,#game-view-tangram .mobile-game-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}#game-view-nonogram .mobile-game-stats #nonogram-mode-stat,#game-view-slitherlink .mobile-game-stats #slitherlink-mode-stat{cursor:pointer;user-select:none}#game-view-nonogram .mobile-game-stats #nonogram-mode-stat:active,#game-view-slitherlink .mobile-game-stats #slitherlink-mode-stat:active{transform:scale(.97)}}html.force-mobile-layout #game-view-sokoban #sokoban-stars-box,html.force-mobile-layout #game-view-sokoban #sokoban-status-text,html.force-mobile-layout #game-view-sokoban .sokoban-status-bar,html.force-mobile-layout #game-view-sokoban .topbar-stars{display:none!important}html.force-mobile-layout #game-view-sokoban .sokoban-game-layout{width:100vw!important;max-width:100vw!important;padding:2px 4px 6px!important;margin:0!important;gap:4px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-sokoban .sokoban-top-bar{margin:0 auto 3px!important}html.force-mobile-layout #game-view-sokoban .mobile-game-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:0 0 4px!important;box-sizing:border-box!important}html.force-mobile-layout #game-view-sokoban .mobile-game-stats>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:minmax(0,auto) minmax(0,auto)!important;justify-items:start!important;align-content:center!important;column-gap:5px!important;row-gap:1px!important;width:100%!important;height:44px!important;min-height:44px!important;min-width:0!important;padding:4px 6px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;font-family:inherit!important;text-align:left!important}html.force-mobile-layout #game-view-sokoban .mobile-game-stats>*>svg{grid-column:1!important;grid-row:1/3!important;align-self:center!important;width:18px!important;height:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important;flex-shrink:0!important}html.force-mobile-layout #game-view-sokoban .mobile-game-stats .mobile-stat-label{display:block!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.15!important;text-transform:uppercase!important}html.force-mobile-layout #game-view-sokoban .mobile-game-stats :is(.timer-digits,.stat-num){grid-column:2!important;grid-row:2!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:13.5px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;font-variant-numeric:tabular-nums!important}html.force-mobile-layout #game-view-sokoban .sokoban-board-wrapper,html.force-mobile-layout #game-view-sokoban .sokoban-screen-container{width:100%!important;max-width:100vw!important;padding:0!important;margin:0 auto!important;border:none!important;background:0 0!important;box-shadow:none!important}html.force-mobile-layout #game-view-sokoban .sokoban-canvas-container{padding:0!important;margin:0 auto!important}html.force-mobile-layout #game-view-sokoban .sokoban-dpad{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:8px!important;margin:6px auto 2px!important;width:100%!important;max-width:min(92vw,360px)!important}html.force-mobile-layout #game-view-sokoban .sokoban-dpad .dpad-btn{height:44px!important;min-height:44px!important;max-height:44px!important;border-radius:9px!important;flex:1 1 0!important;padding:0!important}#game-view-tangram>.tangram-game-layout>.tangram-rotations-stat{display:none!important}html.force-mobile-layout #game-view-maze .maze-game-layout,html.force-mobile-layout #game-view-pipes .pipes-game-layout,html.force-mobile-layout #game-view-sokoban .sokoban-game-layout,html.force-mobile-layout #game-view-sudoku .main-layout,html.force-mobile-layout .game-view .unified-game-layout{padding-top:clamp(14px,2.5dvh,24px)!important}html.force-mobile-layout #game-view-sudoku #sudoku-top-bar.game-shared-top-bar,html.force-mobile-layout .game-view .unified-game-layout>.game-shared-top-bar{margin-top:0!important;margin-bottom:8px!important}html.force-mobile-layout #game-view-sudoku .mobile-game-stats,html.force-mobile-layout .game-view .unified-game-layout>.mobile-game-stats{margin-top:0!important;margin-bottom:10px!important}html.force-mobile-layout #game-view-nonogram .mobile-game-stats,html.force-mobile-layout #game-view-slitherlink .mobile-game-stats,html.force-mobile-layout #game-view-tangram .mobile-game-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}html.force-mobile-layout #game-view-nonogram .mobile-game-stats #nonogram-mode-stat,html.force-mobile-layout #game-view-slitherlink .mobile-game-stats #slitherlink-mode-stat{cursor:pointer;user-select:none}html.force-mobile-layout #game-view-nonogram .mobile-game-stats #nonogram-mode-stat:active,html.force-mobile-layout #game-view-slitherlink .mobile-game-stats #slitherlink-mode-stat:active{transform:scale(.97)}@media (max-width:640px){#game-view-futoshiki .futoshiki-status-text{display:none!important}#game-view-futoshiki .mobile-game-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}#game-view-futoshiki .mobile-game-stats>.topbar-stat>svg{grid-row:1/3!important}#game-view-futoshiki .mobile-game-stats>.topbar-stat>.stat-num{grid-column:2!important;justify-self:start!important;font-size:16px!important}#game-view-futoshiki .futoshiki-keypad{grid-template-columns:repeat(var(--futo-key-count,6),minmax(0,1fr))!important;width:min(100%,360px)!important;gap:6px!important}#game-view-futoshiki .futo-key-btn{min-width:0!important}}html.force-mobile-layout #game-view-futoshiki .futoshiki-status-text{display:none!important}html.force-mobile-layout #game-view-futoshiki .mobile-game-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}html.force-mobile-layout #game-view-futoshiki .mobile-game-stats>.topbar-stat>svg{grid-row:1/3!important}html.force-mobile-layout #game-view-futoshiki .mobile-game-stats>.topbar-stat>.stat-num{grid-column:2!important;justify-self:start!important;font-size:16px!important}html.force-mobile-layout #game-view-futoshiki .futoshiki-keypad{grid-template-columns:repeat(var(--futo-key-count,6),minmax(0,1fr))!important;width:min(100%,360px)!important;gap:6px!important}html.force-mobile-layout #game-view-futoshiki .futo-key-btn{min-width:0!important}#game-view-kakuro .kakuro-top-bar #kakuro-hints-stat{display:none!important}@media (max-width:640px){#game-view-kakuro .kakuro-status-bar{display:none!important}#game-view-kakuro .mobile-game-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}#game-view-kakuro .mobile-game-stats #kakuro-hints-stat>svg{grid-row:1/3!important}#game-view-kakuro .mobile-game-stats #kakuro-hints-stat>.stat-num{grid-column:2!important;justify-self:start!important;font-size:16px!important}}html.force-mobile-layout #game-view-kakuro .kakuro-status-bar{display:none!important}html.force-mobile-layout #game-view-kakuro .mobile-game-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}html.force-mobile-layout #game-view-kakuro .mobile-game-stats #kakuro-hints-stat>svg{grid-row:1/3!important}html.force-mobile-layout #game-view-kakuro .mobile-game-stats #kakuro-hints-stat>.stat-num{grid-column:2!important;justify-self:start!important;font-size:16px!important}@media (max-width:640px){.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats{width:calc(100% - 20px)!important;max-width:560px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats>:is(.game-timer,.topbar-stat,.mines-counter-badge,.game2048-score-card,.sudoku-diff-left){grid-template-columns:18px minmax(0,auto)!important;justify-content:center!important;justify-items:center!important;text-align:center!important}.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats>:is(.game-timer,.topbar-stat,.mines-counter-badge,.game2048-score-card,.sudoku-diff-left):not(:has(> svg)){grid-template-columns:minmax(0,auto)!important}.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats>:is(.topbar-stat,.mines-counter-badge,.sudoku-diff-left)>svg{grid-row:1/3!important}.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats #board-diff-badge,.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats>:is(.topbar-stat,.mines-counter-badge):has(> svg)>span:not(.mobile-stat-label){grid-column:2!important;justify-self:center!important}.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats .game2048-score-label,.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats .mobile-stat-label{width:auto!important;max-width:100%!important;text-align:center!important;justify-self:center!important}.game-view:is(#game-view-sudoku,:not(#game-view-sudoku)) .mobile-game-stats :is(.timer-digits,.stat-num,.matchsticks-status-count,.game2048-score-card strong){text-align:center!important;justify-self:center!important}}html.force-mobile-layout .game-view .mobile-game-stats>:is(.game-timer,.topbar-stat,.mines-counter-badge,.game2048-score-card,.sudoku-diff-left){grid-template-columns:18px minmax(0,auto)!important;justify-content:center!important;justify-items:center!important;text-align:center!important}html.force-mobile-layout .game-view .mobile-game-stats>:is(.game-timer,.topbar-stat,.mines-counter-badge,.game2048-score-card,.sudoku-diff-left):not(:has(> svg)){grid-template-columns:minmax(0,auto)!important}html.force-mobile-layout .game-view .mobile-game-stats>:is(.topbar-stat,.mines-counter-badge,.sudoku-diff-left)>svg{grid-row:1/3!important}html.force-mobile-layout .game-view .mobile-game-stats #board-diff-badge,html.force-mobile-layout .game-view .mobile-game-stats>:is(.topbar-stat,.mines-counter-badge):has(> svg)>span:not(.mobile-stat-label){grid-column:2!important;justify-self:center!important}html.force-mobile-layout .game-view .mobile-game-stats .game2048-score-label,html.force-mobile-layout .game-view .mobile-game-stats .mobile-stat-label{width:auto!important;max-width:100%!important;text-align:center!important;justify-self:center!important}html.force-mobile-layout .game-view .mobile-game-stats :is(.timer-digits,.stat-num,.matchsticks-status-count,.game2048-score-card strong){text-align:center!important;justify-self:center!important}html.sudoku-mobile-practice #btn-sound-toggle{display:none!important}.pentomino-hint-card{z-index:1200}.pentomino-hint-card .hint-actions{flex-wrap:wrap}.pentomino-hint-card .hint-actions .btn:disabled{opacity:.5;cursor:not-allowed}@media (min-width:641px){html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-shared-top-bar{width:fit-content!important;max-width:min(calc(100vw - 48px),920px)!important;margin:18px auto 8px!important;padding:5px 8px!important;gap:6px!important;border-radius:12px!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-shared-top-bar .topbar-group{gap:6px!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-shared-top-bar .topbar-group:empty{display:none!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-shared-top-bar .topbar-btn{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:9px!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-shared-top-bar .topbar-btn svg{width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:stretch!important;gap:8px!important;width:fit-content!important;max-width:min(calc(100vw - 48px),760px)!important;margin:0 auto 12px!important;box-sizing:border-box!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip>*{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-content:center!important;align-items:center!important;column-gap:7px!important;row-gap:1px!important;flex:0 1 168px!important;width:168px!important;min-width:132px!important;min-height:50px!important;height:50px!important;padding:6px 10px!important;margin:0!important;border:1px solid var(--border-color)!important;border-radius:10px!important;background:var(--bg-secondary)!important;color:var(--text-main)!important;box-shadow:0 2px 7px color-mix(in srgb,var(--text-main) 6%,transparent)!important;box-sizing:border-box!important;text-align:left!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip>:not(:has(> svg)){grid-template-columns:minmax(0,1fr)!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip>*>svg{grid-column:1!important;grid-row:1/3!important;width:18px!important;height:18px!important;min-width:18px!important;color:var(--accent-amber)!important;stroke:currentColor!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip :is(.mobile-stat-label,.game2048-score-label){display:block!important;grid-column:2!important;grid-row:1!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-muted)!important;font-size:10px!important;font-weight:700!important;line-height:1.1!important;text-transform:uppercase!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip>:not(:has(> svg))>:is(.mobile-stat-label,.game2048-score-label){grid-column:1!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip :is(.timer-digits,.stat-num,.matchsticks-status-count,.game2048-score-card strong){grid-column:2!important;grid-row:2!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--text-main)!important;font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.15!important;font-variant-numeric:tabular-nums!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip>:not(:has(> svg))>:is(.timer-digits,.stat-num,.matchsticks-status-count,strong){grid-column:1!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip>:is(.topbar-stat,.mines-counter-badge)>span:not(.mobile-stat-label){grid-row:2!important;font-weight:800!important;font-variant-numeric:tabular-nums!important}html:not(.force-mobile-layout) .game-view:not(#game-view-sudoku) .game-stats-strip>:is(.topbar-stat,.mines-counter-badge):not(:has(> svg))>span:not(.mobile-stat-label){grid-column:1!important}html:not(.force-mobile-layout) #game-view-caro .game-stats-strip #caro-turn-indicator{grid-template-columns:20px minmax(0,1fr)!important}html:not(.force-mobile-layout) #game-view-caro .game-stats-strip #caro-turn-indicator .caro-current-mark{grid-column:1!important;grid-row:1/3!important;place-self:center!important;order:1!important;width:20px!important;height:20px!important;min-width:20px!important;border-radius:50%!important;font-size:12px!important;font-weight:800!important;line-height:1!important;display:grid!important;place-items:center!important}html:not(.force-mobile-layout) #game-view-caro .game-stats-strip #caro-turn-indicator .mobile-stat-label{grid-column:2!important;grid-row:1!important;order:2!important}html:not(.force-mobile-layout) #game-view-caro .game-stats-strip #caro-turn-indicator .caro-current-player{grid-column:2!important;grid-row:2!important;order:3!important;font-size:15px!important;line-height:1.15!important}html:not(.force-mobile-layout) .game2048-score-strip:not(:has(.game2048-score-card)){display:none!important}}@media (min-width:821px){html:not(.force-mobile-layout) .app-header{min-height:62px!important;padding:10px clamp(16px,2.5vw,32px)!important;column-gap:16px!important}html:not(.force-mobile-layout) .app-header .logo-title{font-size:20px!important}html:not(.force-mobile-layout) .app-header :is(.header-right-group,.header-controls){gap:6px!important}}@media (min-width:901px){html:not(.force-mobile-layout) #game-view-sudoku #hint-card{top:50%!important;left:auto!important;right:max(16px,calc((100vw - 1200px)/ 2 + 16px))!important;transform:translateY(-50%)!important;width:min(400px,36vw)!important;max-height:min(520px,calc(100dvh - 80px))!important;box-shadow:0 16px 40px rgba(0,0,0,.45),0 0 0 1px var(--hint-card-border)!important;z-index:100!important}}@media (max-width:900px){#game-view-sudoku #hint-card{top:auto!important;bottom:8px!important;left:50%!important;transform:translateX(-50%)!important;width:calc(100vw - 16px)!important;max-width:480px!important;max-height:calc(48dvh)!important;border-radius:14px!important;box-shadow:0 -8px 32px rgba(0,0,0,.45),0 0 0 1px var(--hint-card-border)!important;z-index:120!important}}html.force-mobile-layout #game-view-sudoku #hint-card{top:auto!important;bottom:8px!important;left:50%!important;transform:translateX(-50%)!important;width:calc(100vw - 16px)!important;max-width:480px!important;max-height:calc(48dvh)!important;border-radius:14px!important;box-shadow:0 -8px 32px rgba(0,0,0,.45),0 0 0 1px var(--hint-card-border)!important;z-index:120!important}@media (max-width:640px){html body .game-view:not(#game-view-sudoku) .mobile-game-stats,html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:center!important;gap:4px!important;width:calc(100% - 20px)!important;max-width:560px!important;margin-left:auto!important;margin-right:auto!important;overflow-x:hidden!important;overflow-y:hidden!important;box-sizing:border-box!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats>*,html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats>*{flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;margin:0!important;padding:4px 5px!important;border-radius:9px!important;box-sizing:border-box!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats>:is(.game-timer,.topbar-stat,.mines-counter-badge,.game2048-score-card,#caro-turn-indicator),html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats>:is(.game-timer,.topbar-stat,.mines-counter-badge,.game2048-score-card,#caro-turn-indicator){grid-template-columns:18px minmax(0,1fr)!important;column-gap:4px!important;justify-content:center!important;justify-items:center!important;text-align:center!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats>:is(.game-timer,.topbar-stat,.mines-counter-badge,.game2048-score-card):not(:has(> svg)),html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats>:is(.game-timer,.topbar-stat,.mines-counter-badge,.game2048-score-card):not(:has(> svg)){grid-template-columns:minmax(0,1fr)!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats>*>svg,html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats>*>svg{width:15px!important;height:15px!important;min-width:15px!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats #caro-turn-indicator .caro-current-mark,html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats #caro-turn-indicator .caro-current-mark{width:18px!important;height:18px!important;min-width:18px!important;font-size:11px!important;grid-column:1!important;grid-row:1/3!important;place-self:center!important;order:1!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats :is(.mobile-stat-label,.game2048-score-label),html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats :is(.mobile-stat-label,.game2048-score-label){max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;line-height:1.05!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats :is(.timer-digits,.stat-num,.matchsticks-status-count,.game2048-score-card strong,.caro-current-player),html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats :is(.timer-digits,.stat-num,.matchsticks-status-count,.game2048-score-card strong,.caro-current-player){max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;line-height:1.1!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats:not(.stats-three-only):has(> :nth-child(5)),html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats:not(.stats-three-only):has(> :nth-child(5)){justify-content:flex-start!important;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:none}html body .game-view:not(#game-view-sudoku) .mobile-game-stats:not(.stats-three-only):has(> :nth-child(5))>*,html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats:not(.stats-three-only):has(> :nth-child(5))>*{flex:0 0 clamp(72px,21vw,84px)!important}html body .game-view:not(#game-view-sudoku) .mobile-game-stats:not(.stats-three-only):has(> :nth-child(5))::-webkit-scrollbar,html.force-mobile-layout body .game-view:not(#game-view-sudoku) .mobile-game-stats:not(.stats-three-only):has(> :nth-child(5))::-webkit-scrollbar{display:none}}@media (max-width:640px) and (orientation:portrait){.app-header{margin-bottom:clamp(4px,calc(2dvh - 8px),12px)!important}#game-view-maze .maze-game-layout,#game-view-pipes .pipes-game-layout,#game-view-sokoban .sokoban-game-layout,.game-view .unified-game-layout{row-gap:clamp(12px,calc(5dvh - 24px),30px)!important}.game-view .unified-game-layout>.game-screen-container,.game-view .unified-game-layout>.game-shared-top-bar,.game-view .unified-game-layout>.mobile-game-stats{margin-top:0!important;margin-bottom:0!important}}html.force-mobile-layout #game-view-maze .maze-game-layout,html.force-mobile-layout #game-view-pipes .pipes-game-layout,html.force-mobile-layout #game-view-sokoban .sokoban-game-layout,html.force-mobile-layout .game-view .unified-game-layout{row-gap:clamp(12px,calc(5dvh - 24px),30px)!important}html.force-mobile-layout .game-view .unified-game-layout>.game-screen-container,html.force-mobile-layout .game-view .unified-game-layout>.game-shared-top-bar,html.force-mobile-layout .game-view .unified-game-layout>.mobile-game-stats{margin-top:0!important;margin-bottom:0!important}.game-feedback-announcer{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.game-view:not(#game-view-sudoku) .mobile-game-guide{display:grid;gap:3px;width:min(calc(100% - 24px),700px);margin:0 auto 12px;text-align:center;color:var(--text-main)}.mobile-game-guide p{margin:0;line-height:1.35}.mobile-game-goal{font-size:14px;font-weight:700}.mobile-game-howto{font-size:13px;color:var(--text-muted)}.game-view:not(#game-view-sudoku) .game-stats-strip>.stat-card-extra,.game-view:not(#game-view-sudoku) .mobile-game-stats>.stat-card-extra,html body .game-view:not(#game-view-sudoku) .mobile-game-stats>.stat-card-extra{display:none!important}.mobile-level-cycle{font-size:11px;font-weight:800;letter-spacing:.02em}html body .game-view:not(#game-view-sudoku) .game-shared-top-bar .mobile-level-cycle{display:none!important}@media (max-width:640px){html body .game-view:not(#game-view-sudoku) .game-shared-top-bar .mobile-level-cycle{display:inline-flex!important;align-items:center;justify-content:center}.game-view:not(#game-view-sudoku) .mobile-game-guide{display:grid;gap:2px;width:min(calc(100% - 16px),700px);margin:4px auto 8px;text-align:center;color:var(--text-main)}.mobile-game-guide p{margin:0;line-height:1.3;text-wrap:pretty}.mobile-game-goal{font-size:12px;font-weight:700}.mobile-game-howto{font-size:11px;color:var(--text-muted)}}html.force-mobile-layout body .game-view:not(#game-view-sudoku) .game-shared-top-bar .mobile-level-cycle{display:inline-flex!important;align-items:center;justify-content:center}#game-view-caro .caro-descs-bar{display:none!important}html.force-mobile-layout .game-view:not(#game-view-sudoku) .mobile-game-guide{display:grid;gap:2px;width:min(calc(100% - 16px),700px);margin:4px auto 8px;text-align:center;color:var(--text-main)}html.force-mobile-layout .mobile-game-guide p{margin:0;line-height:1.3}html.force-mobile-layout .mobile-game-goal{font-size:12px;font-weight:700}html.force-mobile-layout .mobile-game-howto{font-size:11px;color:var(--text-muted)}#game-view-einstein .einstein-board-wrapper{width:min(100%,680px)!important;max-width:680px!important;margin-inline:auto!important;padding:0!important}#game-view-einstein .einstein-clues-section{width:100%!important;max-width:100%!important;box-sizing:border-box!important}#game-view-einstein .einstein-clues-list{width:100%!important;padding-right:0!important;box-sizing:border-box!important}#game-view-einstein .einstein-matrix-container{--einstein-label-width:38px;--einstein-row-height:68px;--einstein-grid-line:var(--border-thick);width:100%!important;align-self:center!important;gap:0!important;margin:4px auto 8px!important;padding:0!important;overflow:hidden!important;border:1px solid var(--einstein-grid-line);border-radius:9px;box-sizing:border-box;background:var(--bg-secondary)}#game-view-einstein .einstein-matrix-container>.einstein-cat-row,#game-view-einstein .einstein-matrix-container>.einstein-houses-row{min-width:0!important;width:100%!important;max-width:100%!important;gap:0!important;box-sizing:border-box}#game-view-einstein .einstein-houses-row{grid-template-columns:var(--einstein-label-width) repeat(var(--house-count,5),minmax(0,1fr))!important;grid-template-rows:36px!important;align-items:stretch!important}#game-view-einstein .einstein-cat-row{grid-template-columns:var(--einstein-label-width) minmax(0,1fr)!important;grid-template-rows:var(--einstein-row-height)!important;align-items:stretch!important}#game-view-einstein .cat-slots-row{grid-template-columns:repeat(var(--house-count,5),minmax(0,1fr))!important;width:100%!important;height:100%!important;gap:0!important;align-items:stretch!important}#game-view-einstein .einstein-cat-row .cat-label,#game-view-einstein .einstein-house-header,#game-view-einstein .einstein-house-spacer,#game-view-einstein .einstein-slot{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;border:0!important;border-right:1px solid var(--einstein-grid-line)!important;border-bottom:1px solid var(--einstein-grid-line)!important;border-radius:0!important;box-sizing:border-box!important}#game-view-einstein .einstein-house-header,#game-view-einstein .einstein-house-spacer{height:36px!important;min-height:36px!important;padding:0!important;display:flex;align-items:center;justify-content:center;background:var(--bg-tertiary)}#game-view-einstein .einstein-house-spacer{min-width:0!important;background:0 0!important}#game-view-einstein .einstein-cat-row .einstein-slot:last-child,#game-view-einstein .einstein-house-header:last-child{border-right:0!important}#game-view-einstein .einstein-cat-row:last-child .cat-label,#game-view-einstein .einstein-cat-row:last-child .einstein-slot{border-bottom:0!important}#game-view-einstein .einstein-house-header.clue-related{box-shadow:inset 0 0 0 2px var(--einstein-accent)!important}#game-view-einstein .house-num{display:inline-grid!important;place-items:center!important;width:24px!important;height:24px!important;border:1.5px solid currentColor;border-radius:50%;color:var(--text-main);font-size:13px;font-weight:800;line-height:1}#game-view-einstein .einstein-cat-row .cat-label{display:flex!important;align-items:center!important;justify-content:center!important;align-self:stretch!important;height:100%!important;min-height:0!important;padding:0!important;background:0 0!important}#game-view-einstein .einstein-cat-row .cat-label svg{width:28px!important;height:28px!important}@media (max-width:640px){#game-view-einstein .einstein-matrix-container{--einstein-label-width:34px;--einstein-row-height:56px}#game-view-einstein .einstein-cat-row .cat-label svg{width:26px!important;height:26px!important}}html.force-mobile-layout #game-view-einstein .einstein-matrix-container{--einstein-label-width:34px;--einstein-row-height:56px}html.force-mobile-layout #game-view-einstein .einstein-cat-row .cat-label svg{width:26px!important;height:26px!important}#game-view-einstein .einstein-slot{background:var(--bg-secondary)!important;aspect-ratio:auto!important;height:var(--einstein-row-height)!important;min-height:0!important;max-height:none!important;padding:2px!important;cursor:pointer}#game-view-einstein .einstein-slot.is-filled{background:var(--bg-tertiary)!important}#game-view-einstein .einstein-slot.has-conflict{background:var(--hint-secondary-bg)!important;box-shadow:inset 0 0 0 2px var(--einstein-danger)!important}#game-view-einstein .einstein-placed-item{min-height:0!important;height:100%!important;padding:0!important}#game-view-einstein .einstein-placed-item .item-icon{width:92%!important;height:92%!important;max-width:none!important;max-height:none!important}#game-view-einstein .einstein-placed-item .item-icon svg{width:100%!important;height:100%!important}#game-view-einstein .candidates-subgrid{display:grid!important;grid-template-columns:repeat(var(--candidate-cols,3),minmax(0,1fr))!important;grid-template-rows:repeat(var(--candidate-rows,2),minmax(0,1fr))!important;place-items:center!important;width:100%!important;height:100%!important;box-sizing:border-box!important;gap:1px!important;padding:2px!important}#game-view-einstein .einstein-candidate-btn{width:100%!important;height:auto!important;max-width:100%!important;max-height:100%!important;aspect-ratio:1/1;border-radius:5px!important}#game-view-einstein .einstein-candidate-btn svg{width:84%!important;height:84%!important}#game-view-einstein .candidates-subgrid[data-count="3"] .einstein-candidate-btn:last-child{grid-column:1/-1;width:calc(50% - 1px)!important}#game-view-einstein .einstein-slot:focus-visible{outline:2px solid var(--einstein-accent);outline-offset:-2px}.einstein-slot-picker[hidden]{display:none!important}.einstein-slot-picker{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;padding:16px;box-sizing:border-box}.einstein-picker-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}.einstein-picker-card{position:relative;width:min(100%,430px);padding:14px;box-sizing:border-box;border:1px solid var(--border-color);border-radius:14px;background:var(--bg-secondary);color:var(--text-main);box-shadow:0 12px 36px rgba(0,0,0,.25)}.einstein-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.einstein-picker-heading h3{margin:0;font-size:16px}#einstein-picker-close{width:36px;height:36px;border:0;border-radius:8px;background:var(--bg-tertiary);color:var(--text-main);font-size:24px;cursor:pointer}#einstein-picker-mode{margin:4px 0 12px;color:var(--text-muted);font-size:13px}.einstein-picker-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.einstein-picker-option{display:grid;place-items:center;min-height:64px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-tertiary);color:var(--text-main);cursor:pointer;touch-action:manipulation;-webkit-touch-callout:none;user-select:none}.einstein-picker-option:focus-visible{outline:2px solid var(--einstein-accent)}.einstein-picker-option.is-holding{border-color:var(--einstein-accent);background:var(--bg-secondary)}.einstein-picker-option svg{width:38px;height:38px}@media (max-width:640px){#game-view-einstein .einstein-clues-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}#game-view-einstein .einstein-clue-card{padding:2px 3px!important}#game-view-einstein .einstein-clue-card .clue-card-left{gap:2px!important}#game-view-einstein .einstein-clue-card .clue-badge-status{width:15px!important;height:15px!important;font-size:.62rem!important}#game-view-einstein .einstein-clue-card .clue-icon-badge{width:18px!important;height:18px!important}#game-view-einstein .einstein-clue-card .clue-icon-badge svg{width:16px!important;height:16px!important}#game-view-einstein .einstein-clue-card .clue-visual-row{gap:1px!important;flex-wrap:nowrap!important}#game-view-einstein .einstein-clue-card .clue-rel-symbol,#game-view-einstein .einstein-clue-card .clue-visual-row>b{min-width:8px!important;font-size:.85rem!important;padding:0!important;margin:0!important}#game-view-einstein .einstein-clue-card.clue-dual-rel{padding:2px!important}#game-view-einstein .einstein-clue-card.clue-dual-rel .clue-icon-badge{width:15px!important;height:15px!important}#game-view-einstein .einstein-clue-card.clue-dual-rel .clue-icon-badge svg{width:14px!important;height:14px!important}#game-view-einstein .einstein-clue-card.clue-dual-rel .clue-rel-symbol,#game-view-einstein .einstein-clue-card.clue-dual-rel .clue-visual-row>b{min-width:6px!important;font-size:.78rem!important}#game-view-sudoku #hint-card.hint-card-inline-mobile{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:min(100%,var(--board-max-width))!important;max-width:100%!important;max-height:min(34dvh,280px)!important;margin:8px auto 12px!important;padding:12px!important;border-radius:12px!important;box-shadow:0 5px 18px rgba(0,0,0,.2)!important;animation:none!important;z-index:2!important}}html.force-mobile-layout #game-view-einstein .einstein-clues-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}@media (max-width:360px){#game-view-einstein .einstein-clues-list,html.force-mobile-layout #game-view-einstein .einstein-clues-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}html.force-mobile-layout #game-view-sudoku #hint-card.hint-card-inline-mobile{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:min(100%,var(--board-max-width))!important;max-width:100%!important;max-height:min(34dvh,280px)!important;margin:8px auto 12px!important;padding:12px!important;border-radius:12px!important;box-shadow:0 5px 18px rgba(0,0,0,.2)!important;animation:none!important;z-index:2!important}@media (max-width:640px){#game-view-caro .unified-game-layout{padding-left:4px!important;padding-right:4px!important}#game-view-caro .caro-screen-container{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}}html.force-mobile-layout #game-view-caro .unified-game-layout{padding-left:4px!important;padding-right:4px!important}html.force-mobile-layout #game-view-caro .caro-screen-container{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}.caro-board,.caro-cell,.caro-screen-container,.caro-turn-indicator,.einstein-board,.einstein-cell,.einstein-cell *,.einstein-clue,.einstein-clues,.einstein-game-layout,.futoshiki-board,.futoshiki-board-wrapper,.futoshiki-cell,.futoshiki-cell *,.futoshiki-game-layout,.futoshiki-key,.futoshiki-keypad,.futoshiki-num,.futoshiki-rel,.game-board-container,.game-board-wrapper,.game-cell,.game-grid,.game-view:not(#search-view) .game-view-content,.game2048-board-wrapper,.game2048-cell,.game2048-cell *,.game2048-game-layout,.game2048-grid-container,.game2048-score-card,.game2048-score-strip,.kakuro-board,.kakuro-board-wrapper,.kakuro-cell,.kakuro-cell *,.kakuro-game-layout,.kakuro-key,.kakuro-keypad,.mastermind-board,.mastermind-game-layout,.mastermind-key,.mastermind-peg,.mastermind-row,.mastermind-slot,.matchstick,.matchsticks-board,.mines-board-wrapper,.mines-cell,.mines-cell *,.mines-game-layout,.mines-grid,.nim-board,.nim-item,.nim-row,.nonogram-board,.nonogram-board-wrapper,.nonogram-cell,.nonogram-clue,.nonogram-clues-left,.nonogram-clues-top,.nonogram-game-layout,.sudoku-board,.sudoku-cell,.sudoku-cell *,.sudoku-container,.sudoku-key,.sudoku-keypad,.sudoku-note-cell,.sudoku-notes-grid{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent!important}[contenteditable=true],input,textarea{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}[data-theme=dark] .pathfinding-grid-container .cell-player{background:rgba(217,145,23,.22)!important}[data-theme=dark] .pathfinding-grid-container .cell-portal{background:rgba(251,191,36,.16)!important}[data-theme=dark] .pathfinding-grid-container .portal-vortex{color:#fbbf24}[data-theme=dark] .pathfinding-grid-container .cell-trail .trail-dot{background:#fbbf24}.game2048-cell.number-bomb{box-shadow:0 0 12px rgba(166,90,55,.48)!important;animation:1s ease-in-out infinite alternate brandBombPulse!important}@keyframes brandBombPulse{from{box-shadow:0 0 8px rgba(166,90,55,.4);transform:scale(1)}to{box-shadow:0 0 18px rgba(166,90,55,.78);transform:scale(1.03)}}.game2048-cell.number-mul{box-shadow:0 0 10px rgba(140,64,37,.45)!important;animation:1.6s ease-in-out infinite alternate brandMulGlow!important}@keyframes brandMulGlow{from{border:2px solid transparent}to{border:2px solid #d6b989;box-shadow:0 0 16px rgba(140,64,37,.68)}}.game2048-cell.number-div{box-shadow:0 0 10px rgba(199,124,19,.44)!important;animation:1.6s ease-in-out infinite alternate brandDivPulse!important}@keyframes brandDivPulse{from{border:2px solid transparent}to{border:2px solid #f3cb67;box-shadow:0 0 16px rgba(199,124,19,.68)}}.game2048-cell.number-mystery{box-shadow:0 0 12px rgba(114,87,61,.46)!important}.crazy-operation-mul{color:#8c4025!important}.crazy-operation-div{color:#9b5b2f!important}html body #game-view-tangram #tangram-board-wrapper{background:0 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}html body #game-view-tangram #tangram-board{background:0 0!important;border:0!important;box-shadow:none!important}#game-view-game2048 .game2048-board-wrapper,#game-view-game2048 .game2048-score-card{background:var(--g2048-board)!important;border-color:var(--g2048-border)!important}#game-view-game2048 .game2048-grid-container{background:var(--g2048-grid)!important;border:1px solid var(--g2048-border)!important}#game-view-game2048 .game2048-cell.number-special,#game-view-game2048 .game2048-cell.tile-empty{background:var(--g2048-empty)!important}#game-view-game2048 .game2048-hint-banner{background:color-mix(in srgb,var(--accent-amber) 14%,var(--g2048-board))!important;border-color:var(--accent-amber)!important}.game2048-cell .crazy-event{z-index:5;padding:2px 7px;border:2px solid #f3cb67;border-radius:999px;background:#493629;color:#fff9ed;font-size:.82rem;white-space:nowrap;box-shadow:0 3px 10px rgba(43,23,19,.35)}.game2048-cell .crazy-event-bomb,.game2048-cell .crazy-event-bombpair{background:#8c4025;border-color:#e4aa32;color:#fff9ed;font-size:.92rem!important}.game2048-cell .crazy-event-wild{background:#fbbf24;color:#493629}.game2048-cell .crazy-event-mystery{background:#72573d;color:#fff9ed}.combo-burst,.combo-burst.dynomite-combo{background:linear-gradient(135deg,#8c4025,#d99117)!important;border-color:#f3cb67!important;color:#fff9ed!important;box-shadow:0 0 24px rgba(217,145,23,.45),0 8px 20px rgba(43,23,19,.24)!important}.combo-burst.dynomite-combo.is-dynomite{background:linear-gradient(135deg,#672f20,#a65a37,#e4aa32)!important}.home-articles-section{width:min(100% - 32px,1120px);margin:22px auto 30px}.home-articles-inner{padding:clamp(18px,3vw,28px);border:1px solid var(--border-color);border-radius:18px;background:var(--bg-secondary)}.home-articles-heading-row{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}.home-articles-eyebrow{margin:0 0 3px;color:var(--accent-amber);font-size:.78rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.home-articles-heading-row h2{margin:0;color:var(--text-main);font-size:clamp(1.25rem, 2vw, 1.65rem)}.home-articles-all{color:var(--accent-amber);font-weight:700;text-decoration:none;white-space:nowrap}.home-articles-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-article-card{display:flex;min-width:0;flex-direction:column;align-items:flex-start;padding:16px;border:1px solid var(--border-color);border-radius:13px;background:var(--bg-primary);color:var(--text-main);text-decoration:none;transition:border-color .15s,transform .15s}.home-article-card:hover{border-color:var(--accent-amber);transform:translateY(-2px)}.home-article-category{color:var(--accent-amber);font-size:.77rem;font-weight:700}.home-article-card h3{margin:8px 0 6px;font-size:1rem;line-height:1.35}.home-article-card p{margin:0 0 14px;color:var(--text-muted);font-size:.88rem;line-height:1.5}.home-article-read{margin-top:auto;color:var(--accent-amber);font-size:.86rem;font-weight:700}@media (max-width:760px){.home-articles-section{width:calc(100% - 24px);margin-block:16px 22px}.home-articles-list{grid-template-columns:1fr;gap:9px}.home-article-card{padding:14px}}.slitherlink-main-layout{display:flex;flex-direction:column;align-items:center;width:100%}#game-view-slitherlink>.slitherlink-main-layout>.slitherlink-mode-stat{display:none!important}.slitherlink-screen{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.slitherlink-board-wrapper{display:flex;justify-content:center;align-items:center;padding:12px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,.12);max-width:100%;box-sizing:border-box}.slitherlink-svg{display:block;user-select:none;touch-action:none}.slither-cell-bg{fill:var(--bg-secondary);transition:fill .2s}.slither-cell-bg.satisfied{fill:color-mix(in srgb,var(--accent-amber) 10%,var(--bg-secondary))}.slither-cell-bg.exceeded{fill:var(--cell-conflict-bg)}.slither-clue-text{fill:var(--text-main);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:21px;font-weight:700;user-select:none;pointer-events:none;transition:fill .2s}.slither-clue-text.text-satisfied{fill:var(--accent-amber);font-weight:800}.slither-clue-text.text-exceeded{fill:var(--cell-conflict-color);font-weight:900}.slither-dot{fill:var(--text-main);opacity:.85;transition:fill .15s,transform .15s}.slither-dot.connected{fill:var(--accent-amber);opacity:1}.slither-dot.branched{fill:var(--accent-red)}.slither-hit-line{cursor:pointer;stroke:transparent;stroke-width:18}.slither-edge-group:hover .slither-hit-line{stroke:color-mix(in srgb,var(--accent-amber) 25%,transparent)}.slither-active-line{stroke:var(--accent-amber);stroke-width:4.5;stroke-linecap:round;pointer-events:none}.slither-cross line{stroke:var(--text-muted);stroke-width:2.2;stroke-linecap:round;pointer-events:none}.slither-hint-line{stroke:var(--accent-emerald);stroke-width:3.5;stroke-linecap:round;pointer-events:none;animation:1s infinite pulse}.slither-active-line.edge-error{stroke:var(--accent-red);stroke-width:5.5}.slither-cross.edge-error line{stroke:var(--accent-red);stroke-width:3.2}.slither-loading-text{fill:var(--text-muted);font-size:15px;font-weight:600;font-family:inherit}.bridges-main-layout{display:flex;flex-direction:column;align-items:center;width:100%}.bridges-screen{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.bridges-board-wrapper{display:flex;justify-content:center;align-items:center;padding:12px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,.12);max-width:100%;box-sizing:border-box}.bridges-svg{display:block;user-select:none;touch-action:manipulation}.bridges-island{fill:var(--bg-secondary);stroke:var(--border-thick);stroke-width:2.5;transition:.2s}.island-group:hover .bridges-island{stroke:var(--accent-amber);filter:drop-shadow(0 2px 6px rgba(0, 0, 0, .2))}.bridges-island.is-selected{stroke:var(--accent-amber);stroke-width:3.5;fill:var(--cell-selected-bg)}.bridges-island.is-targetable{stroke:var(--accent-amber);stroke-dasharray:4,4;animation:1.5s infinite pulse}.bridges-island.is-satisfied{stroke:var(--accent-amber);fill:color-mix(in srgb,var(--accent-amber) 16%,var(--bg-secondary))}.bridges-island.is-exceeded{stroke:var(--accent-red);fill:var(--cell-conflict-bg)}.island-text{fill:var(--text-main);font-family:inherit;font-size:16px;font-weight:800;pointer-events:none;user-select:none}.island-text.text-satisfied{fill:var(--accent-amber)}.bridge-line{stroke:var(--accent-amber);stroke-width:3;stroke-linecap:round;pointer-events:none}.bridge-line.bridge-error{stroke:var(--accent-red);stroke-width:4;stroke-dasharray:5 3}.bridge-hint-line{stroke:var(--accent-emerald);stroke-width:3;stroke-linecap:round;pointer-events:none;animation:1s infinite pulse}.bridge-hit-area{stroke:transparent;stroke-width:28;cursor:pointer;transition:stroke .15s}.klotski-main-layout{display:flex;flex-direction:column;align-items:center;width:100%}.klotski-screen{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.lightup-board-wrapper{display:flex;justify-content:center;align-items:center;padding:14px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:18px;max-width:100%;box-sizing:border-box}.lightup-board{display:block}.lightup-grid{border-collapse:collapse;border-spacing:0;table-layout:fixed;width:calc(var(--cols,7) * var(--cell,44px));border:3px solid var(--lightup-frame);background:var(--lightup-cell-bg)}.lightup-grid tr{height:var(--cell,44px)}.lightup-cell{width:var(--cell,44px);height:var(--cell,44px);min-width:var(--cell,44px);max-width:var(--cell,44px);padding:0;box-sizing:border-box;overflow:hidden;text-align:center;vertical-align:middle;background:var(--lightup-cell-bg);border:1px solid var(--lightup-grid-line);cursor:pointer;user-select:none;touch-action:manipulation;transition:background .12s}.lightup-cell.has-bulb,.lightup-cell.is-lit{background:var(--lightup-lit-bg)}.lightup-cell.is-wall{background:var(--lightup-wall-bg);cursor:default}.lightup-num{display:block;font-size:calc(var(--cell, 44px) * .46);font-weight:800;line-height:1;color:var(--lightup-wall-text)}.lightup-bulb{display:block;width:calc(var(--cell,44px) * .7);height:calc(var(--cell,44px) * .7);margin:0 auto;color:var(--lightup-bulb-color)}.lightup-cell.is-error{background:var(--lightup-error-bg)}.lightup-cell.is-wall.is-error,.lightup-cell.is-wall.is-over{background:#dc2626}.lightup-cell.is-wall.is-error .lightup-num,.lightup-cell.is-wall.is-over .lightup-num{color:#fff}.lightup-cell.is-conflict-path{background:var(--lightup-conflict-path)}.lightup-cell.is-conflict .lightup-bulb{color:var(--lightup-conflict-bulb-color)}.lightup-cell.is-hint{outline:3px solid var(--accent-emerald);outline-offset:-3px}@media (hover:hover){.bridge-group:hover .bridge-hit-area{stroke:rgba(248,168,29,0.14)}.lightup-cell:not(.is-wall):hover{background:var(--lightup-hover-bg)}.klotski-piece:hover .piece-inner{filter:brightness(1.07)}}.klotski-board-wrapper{display:flex;justify-content:center;align-items:center;padding:14px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:22px;box-shadow:0 14px 36px rgba(43,23,19,.12);max-width:100%;box-sizing:border-box}.klotski-board-outer{position:relative;background:color-mix(in srgb,var(--accent-amber) 8%,var(--bg-tertiary));border:none;border-radius:10px;box-shadow:none;box-sizing:content-box}.klotski-wall{position:absolute;background:color-mix(in srgb,var(--accent-amber) 34%,#2a1206);border-radius:3px;pointer-events:none;z-index:3}.klotski-board-container{position:relative;overflow:visible;outline:0}.klotski-cell-slot{position:absolute;border:1px solid color-mix(in srgb,var(--border-color) 55%,transparent);border-radius:6px;box-sizing:border-box;pointer-events:none}.klotski-piece{position:absolute;box-sizing:border-box;padding:4px;cursor:grab;user-select:none;touch-action:none;transition:transform .12s,filter .15s;z-index:2}.klotski-piece:active{cursor:grabbing;z-index:10}.klotski-piece .piece-inner{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;border-radius:6px;border:3px solid color-mix(in srgb,var(--accent-amber) 55%,#000);box-sizing:border-box;background:color-mix(in srgb,var(--accent-amber) 14%,var(--bg-card));transition:background .15s,border-color .15s}.klotski-piece .piece-label{font-size:13px;font-weight:800;line-height:1.05;letter-spacing:.2px;text-align:center;color:var(--text-main);pointer-events:none;overflow:hidden;max-width:100%;padding:0 2px;word-break:break-word}.klotski-piece.is-hero .piece-inner,.klotski-piece.is-hero-h .piece-inner{background:var(--accent-amber);border-color:#7c2d12}.klotski-piece.is-hero .piece-label,.klotski-piece.is-hero-h .piece-label{color:#3b1d05}.klotski-piece.piece-general-h .piece-inner,.klotski-piece.piece-general-v .piece-inner{background:color-mix(in srgb,var(--accent-amber) 26%,var(--bg-card));border-color:color-mix(in srgb,var(--accent-amber) 65%,#000)}.klotski-piece.piece-wood-h .piece-inner,.klotski-piece.piece-wood-v .piece-inner{background:var(--bg-tertiary);border-color:color-mix(in srgb,var(--text-main) 55%,#000)}.klotski-piece.piece-soldier .piece-inner{background:var(--bg-card);border-color:color-mix(in srgb,var(--accent-amber) 50%,#000)}.klotski-piece.is-selected .piece-inner{outline:3px solid var(--accent-amber);outline-offset:1px}.klotski-piece.is-hint .piece-inner{outline:3px solid var(--accent-emerald);animation:1s infinite pulse}.klotski-exit-gate{position:absolute;display:flex;align-items:center;justify-content:center;color:var(--accent-amber);background:0 0;pointer-events:none;z-index:4;animation:1.5s ease-in-out infinite klotski-exit-pulse}.klotski-exit-gate svg{width:100%;height:100%;display:block;overflow:visible;filter:drop-shadow(0 0 5px color-mix(in srgb, var(--accent-amber) 65%, transparent))}.klotski-exit-gate svg polyline{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}@keyframes klotski-exit-pulse{0%,100%{opacity:.55;transform:translateX(0) translateY(0)}50%{opacity:1}}.klotski-exit-gate.exit-bottom{animation-name:klotski-exit-pulse-down}@keyframes klotski-exit-pulse-down{0%,100%{opacity:.55;transform:translateY(-2px)}50%{opacity:1;transform:translateY(2px)}}.klotski-exit-gate.exit-right{animation-name:klotski-exit-pulse-right}@keyframes klotski-exit-pulse-right{0%,100%{opacity:.55;transform:translateX(-2px)}50%{opacity:1;transform:translateX(2px)}}