.puzzle-list-container{max-width:600px;margin:0 auto;padding:20px}.puzzle-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;gap:1rem}.puzzle-list-title{font-size:28px;font-weight:700;margin-bottom:8px;color:var(--tg-theme-text-color, #000)}.puzzle-list-subtitle{font-size:16px;margin:0;color:var(--tg-theme-hint-color, #999)}.leaderboard-nav-button{background:linear-gradient(135deg,var(--tg-theme-button-color, #3390ec) 0%,#5fa3ef 100%);color:#fff;border:none;border-radius:12px;padding:12px 20px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap;box-shadow:0 2px 8px #3390ec4d}.leaderboard-nav-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3390ec66}.leaderboard-nav-button:active{transform:translateY(0);box-shadow:0 2px 8px #3390ec4d}.difficulty-section{margin-bottom:32px}.difficulty-title{font-size:20px;font-weight:600;margin-bottom:16px;text-transform:uppercase;letter-spacing:.5px}.puzzle-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px}.puzzle-card{background-color:var(--tg-theme-secondary-bg-color, #f0f0f0);border:2px solid;border-radius:12px;padding:20px 16px;cursor:pointer;transition:all .2s ease;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:100px;font-family:inherit}.puzzle-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.puzzle-card:active{transform:translateY(0);box-shadow:0 2px 8px #0000001a}.puzzle-number{font-size:24px;font-weight:700;color:var(--tg-theme-text-color, #000)}.puzzle-difficulty{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--tg-theme-hint-color, #999)}.loading{display:flex;justify-content:center;align-items:center;min-height:200px;font-size:18px;color:var(--tg-theme-hint-color, #999)}.retry-button{padding:12px 24px;background-color:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #ffffff);border:none;border-radius:8px;font-size:16px;font-weight:500;cursor:pointer;transition:opacity .2s}@media (max-width: 480px){.puzzle-list-container{padding:16px}.puzzle-list-header{flex-direction:column;align-items:stretch;gap:1rem}.puzzle-list-title{font-size:24px;text-align:center}.puzzle-list-subtitle{text-align:center}.leaderboard-nav-button{width:100%}.puzzle-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px}.puzzle-card{padding:16px 12px;min-height:90px}.puzzle-number{font-size:20px}}.game-board{display:flex;justify-content:center;align-items:center;padding:20px 0}.sudoku-grid{display:inline-block;border:3px solid var(--tg-theme-text-color, #000);border-radius:8px;overflow:hidden;background-color:var(--tg-theme-text-color, #000);gap:2px}.sudoku-row{display:flex;gap:2px}.sudoku-row:not(:last-child){margin-bottom:2px}.sudoku-row:nth-child(2){margin-bottom:3px}.sudoku-row:nth-child(4){margin-bottom:3px}.sudoku-cell{width:50px;height:50px;font-size:24px;font-weight:600;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;transition:all .15s ease;font-family:inherit;background-color:var(--tg-theme-bg-color, #fff);color:var(--tg-theme-text-color, #000)}.sudoku-cell:nth-child(3){margin-right:1px}.sudoku-cell.initial{background-color:var(--tg-theme-secondary-bg-color, #f0f0f0);font-weight:700;cursor:not-allowed;color:var(--tg-theme-text-color, #000)}.sudoku-cell.editable{background-color:var(--tg-theme-bg-color, #fff);color:var(--tg-theme-button-color, #3390ec)}.sudoku-cell.editable:hover{background-color:#3390ec1a}.sudoku-cell.editable:active{background-color:#3390ec33}.sudoku-cell.selected{background-color:#3390ec4d!important;box-shadow:inset 0 0 0 2px var(--tg-theme-button-color, #3390ec)}.sudoku-cell.invalid{background-color:#f4433633!important;color:#f44336}@media (max-width: 480px){.sudoku-cell{width:45px;height:45px;font-size:20px}}@media (max-width: 380px){.sudoku-cell{width:40px;height:40px;font-size:18px}}@media (max-width: 340px){.sudoku-cell{width:35px;height:35px;font-size:16px}}.number-picker-inline{background-color:var(--tg-theme-bg-color, #fff);border-radius:16px;padding:24px;max-width:100%;width:100%;box-shadow:0 4px 16px #0000001a;border:2px solid var(--tg-theme-hint-color, #e0e0e0);margin-top:24px}.number-picker-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.number-picker-header h3{font-size:20px;font-weight:600;margin:0;color:var(--tg-theme-text-color, #000)}.selected-cell-info{font-size:14px;font-weight:500;color:var(--tg-theme-hint-color, #999);background-color:#3390ec1a;padding:6px 12px;border-radius:8px}.number-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:12px}.number-button{aspect-ratio:1;font-size:24px;font-weight:600;background-color:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff);border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;font-family:inherit;min-height:48px}.number-button:hover:not(:disabled){transform:scale(1.05)}.number-button:active:not(:disabled){transform:scale(.95);opacity:.8}.number-button:disabled{opacity:.4;cursor:not-allowed}.clear-button{width:100%;padding:12px;font-size:15px;font-weight:500;background-color:transparent;color:var(--tg-theme-hint-color, #999);border:2px solid var(--tg-theme-hint-color, #999);border-radius:8px;cursor:pointer;transition:all .2s ease;font-family:inherit}.clear-button:hover:not(:disabled){background-color:#0000000d}.clear-button:active:not(:disabled){background-color:#0000001a;transform:scale(.98)}.clear-button:disabled{opacity:.4;cursor:not-allowed}@media (max-width: 480px){.number-picker-inline{padding:16px;margin-top:16px}.number-picker-header{margin-bottom:16px}.number-picker-header h3{font-size:16px}.selected-cell-info{font-size:12px;padding:4px 8px}.number-grid{gap:6px;margin-bottom:10px}.number-button{font-size:20px;min-height:40px}.clear-button{padding:10px;font-size:14px}}.result-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:2000;padding:20px;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.result-modal{background-color:var(--tg-theme-bg-color, #fff);border-radius:20px;padding:32px 24px;max-width:400px;width:100%;text-align:center;box-shadow:0 12px 48px #0006;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.result-icon{font-size:72px;margin-bottom:16px;animation:scaleIn .5s ease .2s both}@keyframes scaleIn{0%{transform:scale(0)}to{transform:scale(1)}}.result-icon.success{animation:scaleIn .5s ease .2s both,bounce .6s ease .7s}@keyframes bounce{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}.result-title{font-size:24px;font-weight:700;margin:0 0 12px;color:var(--tg-theme-text-color, #000)}.result-message{font-size:16px;color:var(--tg-theme-hint-color, #666);margin:0 0 32px;line-height:1.5}.result-actions{display:flex;flex-direction:column;gap:12px}.action-button{width:100%;padding:16px;font-size:16px;font-weight:600;border:none;border-radius:12px;cursor:pointer;transition:all .2s ease;font-family:inherit}.action-button.primary{background-color:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff)}.action-button.primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3390ec4d}.action-button.primary:active{transform:translateY(0);opacity:.9}.action-button.secondary{background-color:transparent;color:var(--tg-theme-hint-color, #999);border:2px solid var(--tg-theme-hint-color, #999)}.action-button.secondary:hover{background-color:#0000000d}.action-button.secondary:active{background-color:#0000001a;transform:scale(.98)}@media (max-width: 480px){.result-modal{padding:28px 20px}.result-icon{font-size:60px}.result-title{font-size:22px}.result-message{font-size:15px}.action-button{padding:14px;font-size:15px}}.game-controls{width:100%;max-width:600px;margin:16px auto 0;padding:0 16px}.controls-row{display:flex;gap:8px;margin-bottom:12px}.top-row{justify-content:space-between;align-items:center}.control-info{display:flex;align-items:center;gap:12px}.difficulty-badge{padding:4px 12px;border-radius:12px;color:#fff;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.timer{font-size:16px;font-weight:600;color:var(--tg-theme-text-color, #000);font-variant-numeric:tabular-nums}.progress{font-size:14px;color:var(--tg-theme-hint-color, #666);font-variant-numeric:tabular-nums}.action-row{justify-content:space-between}.control-button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 8px;background-color:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff);border:none;border-radius:10px;cursor:pointer;transition:all .2s ease;font-family:inherit;min-width:60px}.control-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 2px 8px #3390ec4d}.control-button:active:not(:disabled){transform:translateY(0);opacity:.9}.control-button:disabled{opacity:.4;cursor:not-allowed}.control-button.reset-button{background-color:transparent;color:var(--tg-theme-hint-color, #999);border:2px solid var(--tg-theme-hint-color, #999)}.control-button.reset-button:hover:not(:disabled){background-color:#0000000d;box-shadow:none}.button-icon{font-size:20px}.button-label{font-size:11px;font-weight:500}@media (max-width: 480px){.game-controls{padding:0 12px}.control-button{padding:8px 6px;min-width:55px}.button-icon{font-size:18px}.button-label{font-size:10px}.timer{font-size:14px}.progress{font-size:12px}.difficulty-badge{font-size:10px;padding:3px 10px}}@media (max-width: 380px){.control-button{padding:6px 4px;min-width:50px;gap:2px}.button-icon{font-size:16px}.button-label{font-size:9px}}.toast{position:fixed;top:20px;right:20px;max-width:400px;width:calc(100% - 40px);background:#fff;border-radius:16px;box-shadow:0 8px 32px #0003;z-index:9999;animation:toast-slide-in .3s cubic-bezier(.68,-.55,.265,1.55);overflow:hidden}.toast-success{border-left:4px solid #4caf50}.toast-info{border-left:4px solid #2196f3}.toast-warning{border-left:4px solid #ff9800}.toast-error{border-left:4px solid #f44336}.toast-content{padding:16px;position:relative}.toast-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.toast-icon{font-size:24px;line-height:1}.toast-title{margin:0;font-size:18px;font-weight:700;color:#333}.toast-message{margin:0 0 12px 32px;font-size:14px;color:#666;line-height:1.5}.toast-points{display:flex;justify-content:space-between;align-items:center;margin:12px 0;padding:12px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;animation:points-pulse .6s ease-out}.points-label{font-size:14px;font-weight:600;color:#fff}.points-value{font-size:28px;font-weight:900;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.2)}.toast-milestone{display:flex;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;background:linear-gradient(135deg,#f093fb,#f5576c);border-radius:10px;animation:milestone-bounce .8s ease-out}.milestone-icon{font-size:20px}.milestone-text{font-size:14px;font-weight:700;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.2)}.toast-rank{display:flex;justify-content:space-between;align-items:center;margin:12px 0;padding:10px 12px;background:linear-gradient(135deg,#ffecd2,#fcb69f);border-radius:10px;animation:rank-slide .5s ease-out}.toast-rank.rank-improved{background:linear-gradient(135deg,#a8edea,#fed6e3)}.rank-label{font-size:14px;font-weight:600;color:#333}.rank-change{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:900;color:#333}.rank-arrow{font-size:20px;animation:rank-arrow-bounce .6s ease-out infinite alternate}.rank-improved .rank-arrow{color:#4caf50}.toast-progress{position:absolute;bottom:0;left:0;right:0;height:4px;background:#0000001a}.toast-progress-bar{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);width:100%;transform-origin:left}.toast-close{position:absolute;top:12px;right:12px;background:transparent;border:none;font-size:28px;line-height:1;cursor:pointer;color:#999;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s}.toast-close:hover{background:#0000000d;color:#333}.toast-close:active{transform:scale(.9)}@keyframes toast-slide-in{0%{transform:translate(120%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes toast-progress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes points-pulse{0%{transform:scale(.9);opacity:0}50%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}@keyframes milestone-bounce{0%,to{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}75%{transform:translateY(-5px)}}@keyframes rank-slide{0%{transform:translate(-20px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes rank-arrow-bounce{0%{transform:translateY(-2px)}to{transform:translateY(2px)}}@media (max-width: 480px){.toast{top:10px;right:10px;width:calc(100% - 20px);max-width:none}.toast-title{font-size:16px}.toast-message{font-size:13px}.points-value{font-size:24px}.rank-change{font-size:16px}}.toast:nth-child(2){top:100px}.toast:nth-child(3){top:180px}.toast:nth-child(4){top:260px}.game-page-container{max-width:600px;margin:0 auto;padding:20px;min-height:100vh;display:flex;flex-direction:column}.game-header{text-align:center;margin-bottom:20px}.game-header-top{display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:8px}.game-title{font-size:24px;font-weight:700;margin:0;color:var(--tg-theme-text-color, #000)}.menu-button{position:absolute;right:0;top:50%;transform:translateY(-50%);background-color:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff);border:none;border-radius:8px;width:40px;height:40px;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;font-family:inherit}.menu-button:hover{transform:translateY(-50%) scale(1.05);box-shadow:0 2px 8px #3390ec4d}.menu-button:active{transform:translateY(-50%) scale(.95);opacity:.9}.game-instruction{font-size:14px;color:var(--tg-theme-hint-color, #999);margin:0}.congratulation-banner{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;padding:20px;margin-bottom:20px;display:flex;align-items:center;gap:16px;box-shadow:0 4px 16px #667eea4d;animation:slideIn .4s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.congratulation-icon{font-size:48px;flex-shrink:0;animation:bounce 1s ease infinite}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.congratulation-content{flex:1;text-align:left}.congratulation-title{font-size:20px;font-weight:700;margin:0 0 8px;color:#fff}.congratulation-message{font-size:14px;margin:0 0 16px;color:#ffffffe6;line-height:1.4}.congratulation-submit-button{padding:12px 24px;font-size:16px;font-weight:600;background-color:#fff;color:#667eea;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;font-family:inherit;box-shadow:0 2px 8px #0000001a}.congratulation-submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #0003}.congratulation-submit-button:active:not(:disabled){transform:translateY(0)}.congratulation-submit-button:disabled{opacity:.7;cursor:not-allowed}.game-actions{margin-top:24px;display:flex;justify-content:center}.submit-button{padding:16px 32px;font-size:18px;font-weight:600;background-color:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff);border:none;border-radius:12px;cursor:pointer;transition:all .2s ease;font-family:inherit;min-width:200px}.submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #3390ec4d}.submit-button:active:not(:disabled){transform:translateY(0);opacity:.9}.submit-button:disabled{opacity:.6;cursor:not-allowed}.hint-message{text-align:center;margin-top:16px;padding:12px 20px;background-color:#ffc1071a;border:2px solid #FFC107;border-radius:8px;color:var(--tg-theme-text-color, #000);font-size:14px;font-weight:500;animation:fadeInOut 3s ease}@keyframes fadeInOut{0%{opacity:0;transform:translateY(-10px)}10%,90%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@media (max-width: 480px){.game-page-container{padding:16px}.game-title{font-size:20px}.game-instruction{font-size:13px}.submit-button{padding:14px 28px;font-size:16px;min-width:180px}.menu-button{width:36px;height:36px;font-size:18px}.congratulation-banner{padding:16px;gap:12px}.congratulation-icon{font-size:40px}.congratulation-title{font-size:18px}.congratulation-message{font-size:13px}.congratulation-submit-button{padding:10px 20px;font-size:14px}}.leaderboard-page{min-height:100vh;background:var(--tg-theme-bg-color, #fff);color:var(--tg-theme-text-color, #000);padding-bottom:2rem}.loading-container,.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;padding:2rem;gap:1rem}.loading-spinner{width:40px;height:40px;border:4px solid rgba(0,0,0,.1);border-left-color:var(--tg-theme-button-color, #3390ec);border-radius:50%;animation:spin 1s linear infinite}.loading-spinner.large{width:60px;height:60px;border-width:6px}@keyframes spin{to{transform:rotate(360deg)}}.error-icon{font-size:3rem;margin:0}.error-message{color:var(--tg-theme-hint-color, #999);margin:.5rem 0}.retry-button{padding:.75rem 2rem;background:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff);border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:opacity .2s}.retry-button:active{opacity:.8}.leaderboard-header{background:linear-gradient(135deg,var(--tg-theme-button-color, #3390ec) 0%,#5fa3ef 100%);padding:1.5rem 1rem;color:#fff}.header-content{max-width:600px;margin:0 auto}.header-title{margin:0 0 1rem;font-size:1.75rem;font-weight:700;text-align:center}.reset-timer{display:flex;align-items:center;justify-content:center;gap:.5rem;background:#fff3;padding:.75rem 1rem;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.timer-label{font-size:.875rem;opacity:.9}.timer-value{font-size:1.125rem;font-weight:700;font-family:Courier New,monospace}.user-rank-card{max-width:600px;margin:-1rem auto 1.5rem;background:var(--tg-theme-secondary-bg-color, #f4f4f5);border-radius:16px;padding:1.5rem;box-shadow:0 4px 12px #0000001a}.user-rank-card.loading{display:flex;justify-content:center;align-items:center;min-height:120px}.user-rank-card.no-rank{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;text-align:center}.no-rank-text{margin:0;font-size:1rem;font-weight:500}.card-content{display:flex;flex-direction:column;gap:1rem}.rank-section{display:flex;flex-direction:column;align-items:center;gap:.25rem}.rank-label{font-size:.75rem;font-weight:600;color:var(--tg-theme-hint-color, #999);letter-spacing:1px}.rank-value{font-size:2.5rem;font-weight:700;color:var(--tg-theme-button-color, #3390ec)}.rank-total{font-size:.875rem;color:var(--tg-theme-hint-color, #999)}.stats-section{display:flex;justify-content:space-around;align-items:center;gap:1rem;padding-top:1rem;border-top:1px solid rgba(0,0,0,.1)}.stat-item{display:flex;flex-direction:column;align-items:center;gap:.25rem}.stat-value{font-size:1.5rem;font-weight:700;color:var(--tg-theme-text-color, #000)}.stat-label{font-size:.75rem;color:var(--tg-theme-hint-color, #999);text-transform:uppercase;letter-spacing:.5px}.stat-divider{width:1px;height:40px;background:#0000001a}.leaderboard-content{max-width:600px;margin:0 auto;padding:0 1rem}.content-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.content-title{margin:0;font-size:1.25rem;font-weight:600}.refresh-button{background:transparent;border:1px solid var(--tg-theme-hint-color, #999);border-radius:8px;padding:.5rem .75rem;font-size:1.25rem;cursor:pointer;transition:all .2s}.refresh-button:disabled{opacity:.5;cursor:not-allowed}.refresh-button:active:not(:disabled){transform:scale(.95)}.leaderboard-table{background:var(--tg-theme-secondary-bg-color, #f4f4f5);border-radius:12px;overflow:hidden}.leaderboard-table.empty{padding:3rem 1rem}.empty-state{text-align:center}.empty-icon{font-size:3rem;margin:0 0 1rem}.empty-text{font-size:1.125rem;font-weight:600;margin:0 0 .5rem}.empty-subtext{font-size:.875rem;color:var(--tg-theme-hint-color, #999);margin:0}.table-header{display:grid;grid-template-columns:80px 1fr 80px 90px;gap:.5rem;padding:1rem;background:#0000000d;font-size:.75rem;font-weight:600;color:var(--tg-theme-hint-color, #999);text-transform:uppercase;letter-spacing:.5px}.header-rank{text-align:center}.header-user{text-align:left}.header-puzzles{text-align:center}.header-points{text-align:right}.table-body{display:flex;flex-direction:column}.table-row{display:grid;grid-template-columns:80px 1fr 80px 90px;gap:.5rem;padding:1rem;border-bottom:1px solid rgba(0,0,0,.05);transition:background .2s}.table-row:last-child{border-bottom:none}.table-row.top-three{background:linear-gradient(90deg,rgba(255,215,0,.1) 0%,transparent 100%)}.table-row.current-user{background:#3390ec1a;font-weight:600}.row-rank{display:flex;align-items:center;justify-content:center;gap:.25rem}.medal{font-size:1.25rem}.rank-number{font-weight:600;color:var(--tg-theme-text-color, #000)}.row-user{display:flex;align-items:center;gap:.5rem;overflow:hidden}.user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.you-badge{background:var(--tg-theme-button-color, #3390ec);color:#fff;padding:.125rem .5rem;border-radius:4px;font-size:.625rem;font-weight:700;letter-spacing:.5px;flex-shrink:0}.row-puzzles,.row-points{display:flex;align-items:center;font-weight:500}.row-puzzles{justify-content:center}.row-points{justify-content:flex-end;color:var(--tg-theme-button-color, #3390ec);font-weight:600}.leaderboard-actions{max-width:600px;margin:2rem auto 0;padding:0 1rem}.back-to-puzzles-button{width:100%;padding:1rem;background:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff);border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #3390ec4d}.back-to-puzzles-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3390ec66}.back-to-puzzles-button:active{transform:translateY(0);box-shadow:0 2px 8px #3390ec4d}.no-user-notice{max-width:600px;margin:1rem auto 0;padding:1rem;text-align:center;background:var(--tg-theme-secondary-bg-color, #f4f4f5);border-radius:12px;color:var(--tg-theme-hint-color, #999);font-size:.875rem}@media (max-width: 480px){.table-header,.table-row{grid-template-columns:60px 1fr 70px 80px;gap:.25rem;padding:.75rem;font-size:.875rem}.table-header{font-size:.625rem}.header-title{font-size:1.5rem}.rank-value{font-size:2rem}.stat-value{font-size:1.25rem}}.telegram-test-page{max-width:800px;margin:0 auto;padding:2rem 1rem;background:var(--tg-theme-bg-color, #fff);color:var(--tg-theme-text-color, #000);min-height:100vh}.test-title{text-align:center;font-size:2rem;margin-bottom:2rem;color:var(--tg-theme-text-color, #000)}.test-section{background:var(--tg-theme-secondary-bg-color, #f4f4f5);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.test-section.fallback-section{background:linear-gradient(135deg,#ffc1071a,#ff98001a);border:2px solid rgba(255,193,7,.3)}.section-title{font-size:1.25rem;font-weight:600;margin-bottom:1rem;color:var(--tg-theme-text-color, #000);display:flex;justify-content:space-between;align-items:center}.status-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.status-item{display:flex;flex-direction:column;gap:.5rem}.status-label{font-size:.875rem;color:var(--tg-theme-hint-color, #999)}.status-value{font-size:1rem;font-weight:600;color:var(--tg-theme-text-color, #000)}.status-value.success{color:#4caf50}.status-value.warning{color:#ff9800}.user-info{display:flex;flex-direction:column;gap:.75rem}.info-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#0000000d;border-radius:8px}.info-label{font-size:.875rem;font-weight:500;color:var(--tg-theme-hint-color, #999)}.info-value{font-size:.875rem;font-family:Courier New,monospace;background:#0000001a;padding:.25rem .5rem;border-radius:4px}.no-user{text-align:center;color:var(--tg-theme-hint-color, #999);padding:2rem}.fallback-description{margin-bottom:1rem;color:var(--tg-theme-hint-color, #999);font-size:.875rem}.button-group{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}.test-button{flex:1;min-width:120px;padding:.75rem 1rem;background:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff);border:none;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s}.test-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3390ec4d}.test-button:active{transform:translateY(0)}.test-button.secondary{background:transparent;border:2px solid var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-color, #3390ec)}.test-button.success{background:#4caf50}.test-button.warning{background:#ff9800}.test-button.error{background:#f44336}.theme-grid{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.theme-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#0000000d;border-radius:8px}.theme-label{font-size:.875rem;font-weight:500;color:var(--tg-theme-hint-color, #999)}.theme-value{display:flex;align-items:center;gap:.5rem}.theme-value code{font-size:.75rem;font-family:Courier New,monospace;background:#0000001a;padding:.25rem .5rem;border-radius:4px}.color-preview{width:24px;height:24px;border-radius:4px;border:1px solid rgba(0,0,0,.2)}.toggle-button{background:transparent;border:1px solid var(--tg-theme-hint-color, #999);color:var(--tg-theme-hint-color, #999);padding:.25rem .75rem;border-radius:6px;font-size:.75rem;cursor:pointer;transition:all .2s}.toggle-button:hover{background:#0000000d}.raw-data{background:#000000e6;color:#0f0;padding:1rem;border-radius:8px;overflow-x:auto;font-size:.75rem;font-family:Courier New,monospace;margin-top:1rem}.navigation{display:flex;gap:1rem;margin-top:2rem}.nav-button{flex:1;padding:1rem;background:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff);border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.nav-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3390ec4d}.nav-button:active{transform:translateY(0)}@media (max-width: 640px){.telegram-test-page{padding:1rem}.test-title{font-size:1.5rem}.status-grid,.theme-grid{grid-template-columns:1fr}.button-group{flex-direction:column}.test-button{width:100%}.navigation{flex-direction:column}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overscroll-behavior:none;touch-action:pan-x pan-y}#root{width:100%;min-height:100vh;background-color:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000)}.app{max-width:600px;margin:0 auto;padding:16px}.loading{display:flex;justify-content:center;align-items:center;height:100vh;font-size:18px;color:var(--tg-theme-hint-color, #999)}.error{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;padding:20px;text-align:center}.error-message{color:#f44336;margin-bottom:16px;font-size:16px}.error-button{padding:12px 24px;background-color:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #ffffff);border:none;border-radius:8px;font-size:16px;cursor:pointer;transition:opacity .2s}.error-button:active{opacity:.8}.text-center{text-align:center}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}
