.clues-footer{border-top:2px solid var(--border-light);flex-shrink:0}
.clues-footer__progress{margin-bottom:10px}
.clues-footer__progress-row{display:flex;align-items:center;gap:8px}
.clues-footer__words{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--text-light);white-space:nowrap;flex-shrink:0}
.clues-footer__words svg{flex-shrink:0}
.clues-footer__words-sub{font-size:11px;font-weight:600;color:#94a3b8}
.clues-footer__bar-block{flex:1;min-width:0}
.clues-footer__bar-wrap{position:relative;width:100%;height:18px;background:#e2e8f0;border-radius:9px;overflow:hidden}
.clues-footer__bar{height:100%;width:0%;border-radius:9px;background:var(--primary);transition:width .5s ease,background .5s ease;display:block}
.clues-footer__pct-wrap{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}
.clues-footer__pct{font-size:11px;font-weight:600;color:#1e293b;line-height:1;transition:color .3s ease}
.clues-footer__timer{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--text-light);white-space:nowrap;flex-shrink:0}
.clues-footer__timer svg{flex-shrink:0}
.clues-footer__btns{display:flex;gap:8px}
.clues-footer__btns .btn-c{flex:1;font-size:.85rem;padding:.65rem .5rem;margin:0}
.btn-answers{background:linear-gradient(135deg,#f59e0b,#d97706)!important;color:#fff!important}
[data-theme="dark"] .clues-footer__bar-wrap{background:#fff}
[data-theme="dark"] .clues-footer__pct{color:#fff}
.clues-footer__divider{border:none;border-top:2px solid var(--border-light);margin:0 0 10px}
.section-header h1 {display: flex;flex-direction: column;gap: 0rem;font-size: 1rem;line-height: 1.2;white-space: normal;overflow: visible;}
.crossword-label {font-size: 0.75rem;font-weight: 600;/* text-transform: uppercase; */letter-spacing: 0.1em;opacity: 0.8;line-height: 1.2;color: #000;}
.crossword-title {font-size: 1.4rem;font-weight: 600;background: linear-gradient(135deg, var(--primary), var(--primary-dark));-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-clip: text;line-height: 1.1;}
.cell-size-control{display:none;background:var(--card-light);padding:1rem 1.5rem;border-radius:1rem;margin:1rem 0;box-shadow:0 4px 12px #00000014;border:1px solid var(--border-light)}
.cell-size-control.mobile-only{display:block}
.cell-size-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.cell-size-label{font-size:.95rem;font-weight:600;color:var(--text-light);display:flex;align-items:center;gap:.5rem}
.cell-size-label i{color:var(--primary);font-size:1.1rem}
.cell-size-value{font-size:1.1rem;font-weight:600;color:var(--primary);min-width:45px;text-align:right}
.cell-size-slider-container{position:relative;padding:.5rem 0}
.cell-size-slider{-webkit-appearance:none;appearance:none;width:100%;height:8px;border-radius:4px;background:linear-gradient(90deg,#e2e8f0 0%,var(--primary) 100%);outline:none;transition:all .2s}
.cell-size-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;border-radius:50%;background:#fff;border:3px solid var(--primary);cursor:pointer;box-shadow:0 2px 8px #0003;transition:all .2s}
.cell-size-slider::-webkit-slider-thumb:hover{transform:scale(1.15);box-shadow:0 4px 12px #6366f166}
.cell-size-slider::-webkit-slider-thumb:active{transform:scale(1.05)}
.cell-size-slider::-moz-range-thumb{width:28px;height:28px;border-radius:50%;background:#fff;border:3px solid var(--primary);cursor:pointer;box-shadow:0 2px 8px #0003;transition:all .2s}
.cell-size-slider::-moz-range-thumb:hover{transform:scale(1.15);box-shadow:0 4px 12px #6366f166}
.cell-size-marks{display:flex;justify-content:space-between;margin-top:.5rem;padding:0 .5rem}
.cell-size-mark{font-size:.75rem;color:#000;opacity:.6;font-weight:600}
@media (min-width: 769px) {
.cell-size-control{display:none!important}
}
.crossword a,.crossword a:hover{text-decoration:none}
.crossword-container{display:flex;flex-direction:column;gap:1.5rem;margin-bottom:2rem}
.crossword-grid{padding:0;width:100%;overflow-x:auto;overflow-y:visible; scrollbar-width:none; -ms-overflow-style:none;}
.crossword-grid::-webkit-scrollbar{display:none;}
.crossword-grid::-webkit-scrollbar-track{background:transparent}
.crossword-grid::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}
.crossword-grid-inner{display:flex;justify-content:center;align-items:center;min-width:100%;padding:0;width:100%}
.crossword-grid-table{display:grid;gap:0;background:#1e293b;padding:3px;border-radius:8px;margin:0 auto;transition:all .3s ease}
.crossword-cell{position:relative;border:1px solid #334155;border-radius:0;transition:all .2s}
.crossword-cell--empty{background:#1e293b}
.crossword-cell--active{background:#fff;border-color:#cbd5e1}
.crossword-cell__number{position:absolute;top:1px;left:1px;color:#000;font-weight:600;pointer-events:none;font-family:sans-serif;line-height:1}
.crossword-cell__input{width:100%;height:100%;border:none;text-align:center;font-weight:700;font-family:sans-serif;/* text-transform:uppercase */;color:#1e293b;outline:none;background:transparent;caret-color:#dc2626;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:text;transition:background 0.2s,color .2s}
.clues-sidebar{background:var(--card-light);padding:1rem;border-radius:1rem;box-shadow:0 10px 25px -5px #0000001a;min-width:350px;display:flex;flex-direction:column}
.clues-tabs{display:flex;gap:.5rem;margin-bottom:0.5rem;border-bottom:2px solid var(--border-light)}
.clues-tab{flex:1;padding:.75rem 1rem;background:transparent;border:none;font-weight:600;color:#000;opacity:.6;cursor:pointer;transition:all .3s;border-radius:.5rem .5rem 0 0}
[data-theme="dark"] .clues-tab, .cell-size-mark{color:#fff;opacity: 1;}
[data-theme="dark"] .crossword-label{color:#fff;opacity: 1;}
.clues-tab.active{opacity:1}
.clues-tab[data-target="across"].active{background:#dc2626;color:#fff}
.clues-tab[data-target="down"].active{background:#16a34a;color:#fff}
.clues-content{display:none;overflow-y:auto;flex:1}
.clues-content.active{display:block}
.clues-title{font-size:1.3rem;font-weight:600;margin-bottom:1rem;padding-bottom:.5rem}
.clues-content[id="across"] .clues-title{color:#dc2626;border-bottom:2px solid #dc2626}
.clues-content[id="down"] .clues-title{color:#16a34a;border-bottom:2px solid #16a34a}
.clues-list{list-style:none;padding:0;margin:0}
.clue-item{margin-bottom:.25rem;padding:.55rem .25rem;border-radius:.5rem;cursor:pointer;display:flex;gap:.3rem;position:relative}
.clue-item:hover{background:#6366f11a}
.clues-content[id="across"] .clue-number{color:#dc2626}
.clues-content[id="down"] .clue-number{color:#16a34a}
.clue-number{font-weight:600;min-width:20px;font-size:.95rem}
.clue-text{flex:1;font-size:.95rem}
.clue-item.completed{text-decoration:line-through;opacity:.6}
.clue-item.error{border:2px solid #dc2626!important;background:#fee2e2!important}
.clue-item.error::after{content:'⚠';position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#dc2626;font-size:1.2rem;font-weight:700}
.clue-item.active{background:#fef3c7!important;font-weight:600}
[data-theme="dark"] .clue-item.active{background:#605a42!important;font-weight:800}
.clues-footer{margin-top:0.5rem;padding-top:0.6rem;border-top:2px solid var(--border-light)}
.btn-c{padding:.75rem 1.5rem;border:none;border-radius:.75rem;font-weight:600;cursor:pointer;transition:all .3s;display:flex;align-items:center;gap:.5rem;font-size:.95rem;justify-content:center;width:100%}
.btn-primary-c{background:var(--primary);color:#fff}
.btn-primary-c:hover{background:var(--primary-dark);transform:translateY(-2px)}
.progress-section{background:var(--card-light);padding:1.25rem;border-radius:1.25rem;margin:2rem 0;box-shadow:0 10px 30px #00000014;border:1px solid var(--border-light)}
.progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.progress-label{font-size:1.25rem;font-weight:600}
.progress-percentage{font-size:1.25rem;font-weight:600;background:linear-gradient(135deg,var(--primary),var(--primary-dark));-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.progress-bar-container{height:20px;background:var(--cell-empty);border-radius:10px;overflow:hidden;margin-bottom:.5rem;box-shadow:inset 0 2px 4px #0000001a}
.progress-bar-fill{height:100%;border-radius:10px;transition:width .5s ease,background .5s ease;width:0}
.progress-stats{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.progress-stat-item{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:.95rem}
.progress-stat-item i{color:var(--primary);font-size:1.1rem}
.answers-spoiler{background:var(--card-light);border-radius:1rem;margin:2rem 0;overflow:hidden;box-shadow:0 4px 12px #00000014;border:1px solid var(--border-light)}
.answers-spoiler-header{background:var(--primary);color:#fff;padding: 1rem 1.25rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all .3s}
.answers-spoiler-header:hover{background:var(--primary);}
.answers-spoiler-title,.answers-spoiler-title i,.answers-spoiler-icon{color:#fff!important;font-weight:700}
.answers-spoiler-title h2 {font-size: 1.25rem;font-weight: 600;}
.answers-spoiler-icon{font-size:1.2rem;transition:transform .3s}
.answers-spoiler-header.active .answers-spoiler-icon{transform:rotate(180deg)}
.answers-spoiler-content{max-height:0;overflow:hidden;transition:max-height .4s ease}
.answers-spoiler-content.active{max-height:1000px}
.answers-spoiler-body{padding:1.5rem}
.answer-section{margin-bottom:1.5rem}
.answer-section h3{font-size:1.1rem;font-weight:600;margin-bottom:1rem;padding-bottom:.5rem}
.answer-section h3.across-title{color:#dc2626;border-bottom:2px solid #dc2626}
.answer-section h3.down-title{color:#16a34a;border-bottom:2px solid #16a34a}
.answer-section ul{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;padding:0;margin:.75rem 0 0}
.answer-section li{background:none;padding:0;margin:0;font-size:1rem}
.answer-section li::after{content:',';margin-left:2px}
.answer-section li:last-child::after{content:''}
.answer-section li strong.across-number{color:#dc2626}
.answer-section li strong.down-number{color:#16a34a}
.mobile-fixed-clue{position:fixed;top:0;left:0;width:100%;background:#fff;border-bottom:3px solid #dc2626;box-shadow:0 4px 20px #00000026;padding:16px 20px;z-index:999;display:none;opacity:0;transition:opacity .3s ease;overflow-x:hidden}
.mobile-fixed-clue.show{display:block;opacity:1}
.mobile-fixed-clue.vertical{border-bottom-color:#16a34a}
.mobile-fixed-clue__inner{display:flex;align-items:center;justify-content:space-between}
.mobile-fixed-clue__content{flex:1}
.mobile-fixed-clue__number{color:#dc2626;font-size:1.1rem;font-weight:700}
.mobile-fixed-clue.vertical .mobile-fixed-clue__number{color:#16a34a}
.mobile-fixed-clue__text{margin-left:8px;font-weight:600;font-size:1rem;color:#1e293b}
.mobile-fixed-clue__close{background:none;border:none;font-size:1.5rem;color:#94a3b8;cursor:pointer;padding:4px}
.completion-modal{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100vw!important;height:100vh!important;z-index:99999!important;display:none!important;align-items:center!important;justify-content:center!important;opacity:0;transition:opacity .3s ease;margin:0!important;padding:0!important}
.completion-modal.show{display:flex!important;opacity:1}
.completion-modal-overlay{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100vw!important;height:100vh!important;background:#000000b3;backdrop-filter:blur(4px);z-index:99998!important}
.completion-modal-content{position:relative!important;background:#fff;border-radius:1.5rem;padding:3rem 2rem;max-width:500px;width:90%;max-height:90vh;text-align:center;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .4s ease-out;z-index:99999!important;margin:1rem}
@keyframes modalSlideIn {
from{transform:translateY(-50px) scale(0.9);opacity:0}
to{transform:translateY(0) scale(1);opacity:1}
}
.completion-icon{font-size:5rem;margin-bottom:1rem;animation:celebrate .6s ease-in-out}
@keyframes celebrate {
0%,100%{transform:scale(1) rotate(0deg)}
25%{transform:scale(1.2) rotate(-10deg)}
75%{transform:scale(1.2) rotate(10deg)}
}
.completion-title{font-size:2rem;font-weight:600;color:#10b981;margin-bottom:1rem}
.completion-text{color:#64748b;margin-bottom:2rem}
.completion-time{display:flex;align-items:center;justify-content:center;gap:.75rem;color:#1e293b;margin-bottom:2rem;padding:1rem;background:#f1f5f9;border-radius:1rem}
.completion-time i{color:#6366f1;font-size:1.5rem}
.completion-time strong{color:#6366f1;font-weight:700}
.completion-close-btn{padding:1rem 1.5rem;border:none;border-radius:1rem;font-weight:600;font-size:1.1rem;background:linear-gradient(135deg,#10b981,#059669);color:#fff;cursor:pointer;transition:all .3s}
.completion-close-btn:hover{transform:translateY(-2px)}
@media (min-width: 769px) {
.mobile-fixed-clue{display:none!important}
.crossword-grid{display:flex;align-items:center;justify-content:center;padding:0}
}
@media (min-width: 992px) {
.crossword-container{flex-direction:row;align-items:flex-start}
.crossword-grid-wrapper{flex:1;min-width:0}
.crossword-grid{flex:1;min-width:0}
.clues-sidebar{flex:0 0 500px;min-width:350px;max-width:500px;display:flex;flex-direction:column;height:fit-content;max-height:100vh;position:sticky;top:20px}
/* .clues-sidebar{flex:0 0 380px;min-width:350px;max-width:380px;display:flex;flex-direction:column;height:fit-content;max-height:100vh;position:sticky;top:20px} */
.clues-content{flex:1;overflow-y:auto;padding-right:8px}
.clues-content::-webkit-scrollbar{width:6px}
.clues-content::-webkit-scrollbar-track{background:transparent}
.clues-content::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}
}
@media (max-width: 991px) {
.clues-sidebar{max-height:75vh}
.clues-content{max-height:50vh;overflow-y:auto}
}
@media (max-width: 768px) {
.crossword-label {font-size: 0.7rem;}
.crossword-title {font-size: 1.1rem;}
.crossword-grid{margin:0;padding:0;border-radius:0}
.crossword-grid-inner{justify-content:flex-start}
.crossword-grid-table{margin:0}
.clues-sidebar{min-width:auto;max-height:75vh;padding:1rem}
.clues-tab{padding:.75rem .5rem}
.progress-section{padding:1rem}
.answers-spoiler-body{padding:1rem}
.completion-modal-content{padding:2rem 1.5rem}
.completion-icon{font-size:4rem}
.completion-title{font-size:1.5rem}
.crossword-container{gap:0.5rem}
}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin:2rem 0}
.stat-card{background:var(--card-light);padding:1.5rem;border-radius:1rem;box-shadow:0 10px 25px -5px #0000001a;text-align:center;transition:all .3s}
.stat-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px #00000026}
.stat-value{font-size:2rem;font-weight:600;color:var(--primary);margin-bottom:.5rem}
.stat-label{font-size:.9rem;color:var(--text-light);opacity:.7}
.bookmark-card{background:linear-gradient(135deg,var(--card-light) 0%,var(--card-light) 100%);padding:1.5rem;border-radius:1rem;box-shadow:0 10px 25px -5px #0000001a;text-align:center;transition:all .3s;border:2px solid var(--border-light);cursor:pointer;position:relative;overflow:hidden}
.bookmark-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--warning),#d97706);transform:scaleX(0);transition:transform .3s}
.bookmark-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px #f59e0b33;border-color:var(--warning)}
.bookmark-card:hover::before{transform:scaleX(1)}
.bookmark-card.active{border-color:var(--warning);background:linear-gradient(135deg,#f59e0b0d,#d977060d)}
.bookmark-card.active::before{transform:scaleX(1)}
.bookmark-icon{font-size:2rem;margin-bottom:.75rem;color:var(--warning);transition:all .3s}
.bookmark-card:hover .bookmark-icon{transform:scale(1.2)}
.bookmark-card.active .bookmark-icon{color:var(--warning)}
.bookmark-label{font-size:.9rem;color:var(--text-light);opacity:.7;font-weight:600}
.bookmark-card.active .bookmark-label{color:var(--warning);opacity:1}
.social-card{background:var(--card-light);padding:1.5rem;border-radius:1rem;box-shadow:0 10px 25px -5px #0000001a;text-align:center;border: 2px solid var(--border-light);}
.social-card-title{font-size:.9rem;color:var(--text-light);opacity:.7;margin-bottom:1rem;font-weight:600}
.social-buttons{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}
.social-btn{width:50px;height:50px;border-radius:50%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:#fff;transition:all .3s;box-shadow:0 4px 12px #00000026}
.social-btn:hover{transform:translateY(-5px) scale(1.1);box-shadow:0 8px 20px #00000040}
.social-btn-vk{background:#07f}
.social-btn-telegram{background:#08c}
.social-btn-whatsapp{background:#25d366}
.social-btn-x{background:#000}
.social-btn-facebook{background:#1877f2}
@media (max-width: 768px) {
.social-buttons{gap:.5rem}
.social-btn{width:44px;height:44px;font-size:1.1rem}
}
@media (max-width: 480px) {
.social-card{padding:1.25rem}
.social-buttons{gap:.4rem}
.social-btn{width:40px;height:40px;font-size:1rem}
}
.print-card{background:var(--card-light);padding:1.5rem;border-radius:1rem;box-shadow:0 10px 25px -5px #0000001a;text-align:center;transition:all .3s;cursor:pointer;border:2px solid var(--border-light)}
.print-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px #6366f133;border-color:var(--primary)}
.print-icon{font-size:2rem;margin-bottom:.75rem;color:var(--primary);transition:all .3s}
.print-card:hover .print-icon{transform:scale(1.2)}
.print-label{font-size:.9rem;color:var(--text-light);opacity:.7;font-weight:600}



.crossword-grid{position:relative}
.crossword-grid.instruction-active .crossword-grid-table{filter:blur(8px);-webkit-filter:blur(8px);transition:filter .3s ease;pointer-events:none}
.crossword-grid.instruction-active::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:#0006;z-index:1;opacity:0;animation:fadeIn .3s ease forwards;border-radius:8px;pointer-events:none}
.crossword-grid.instruction-active{border-radius:8px;overflow:hidden}
@keyframes fadeIn {
to{opacity:1}
}
.pinch-instruction-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3;display:none;align-items:center;justify-content:center;opacity:0;transition:opacity .4s ease;padding:8px;pointer-events:none}
.pinch-instruction-overlay.show{display:flex;opacity:1;pointer-events:auto}
.pinch-instruction-content{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:8px;padding:1rem;width:100%;height:100%;box-shadow:none;text-align:center;position:relative;animation:slideUp .5s cubic-bezier(0.34,1.56,0.64,1);border:none;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;pointer-events:auto}
@keyframes slideUp {
from{transform:translateY(50px) scale(0.9);opacity:0}
to{transform:translateY(0) scale(1);opacity:1}
}
.pinch-instruction-title{font-size:1.5rem;font-weight:600;color:#fff;margin-bottom:0;padding:.75rem 0;display:flex;align-items:center;justify-content:center;gap:.5rem;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;text-shadow:0 2px 8px #0000004d}
.pinch-instruction-title i{color:#fff;font-size:1.6rem;filter:drop-shadow(0 2px 8px #0000004d);margin-top:-2px}
.pinch-instruction-text{font-size:1rem;color:#fff;margin-bottom:1rem;line-height:1.6;max-width:400px;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;font-weight:400;text-shadow:0 2px 8px #0000004d}
.pinch-animation-container{position:relative;width:200px;height:200px;margin:0 auto 1rem;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 8px 24px #0000004d}
.pinch-animation-grid{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:120px;height:120px;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);gap:0}
.pinch-animation-grid-cell{border:1px solid #94a3b8}
.pinch-animation-grid-cell:nth-child(1),.pinch-animation-grid-cell:nth-child(3),.pinch-animation-grid-cell:nth-child(6),.pinch-animation-grid-cell:nth-child(8),.pinch-animation-grid-cell:nth-child(9),.pinch-animation-grid-cell:nth-child(11),.pinch-animation-grid-cell:nth-child(14),.pinch-animation-grid-cell:nth-child(16){background:#1e293b}
.pinch-animation-grid-cell:nth-child(2),.pinch-animation-grid-cell:nth-child(4),.pinch-animation-grid-cell:nth-child(5),.pinch-animation-grid-cell:nth-child(7),.pinch-animation-grid-cell:nth-child(10),.pinch-animation-grid-cell:nth-child(12),.pinch-animation-grid-cell:nth-child(13),.pinch-animation-grid-cell:nth-child(15){background:#fff}
.pinch-hand{position:absolute;width:50px;height:50px;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);border-radius:50%;box-shadow:0 4px 12px #6366f180;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5rem;z-index:2}
.pinch-hand-left{top:50%;left:20%;transform:translate(-50%,-50%) rotate(-45deg);animation:pinchLeft 2.5s ease-in-out infinite}
.pinch-hand-right{top:50%;right:20%;transform:translate(50%,-50%) rotate(135deg);animation:pinchRight 2.5s ease-in-out infinite}
@keyframes pinchLeft {
0%,100%{top:30%;left:20%;transform:translate(-50%,-50%) rotate(-45deg) scale(1)}
50%{top:50%;left:40%;transform:translate(-50%,-50%) rotate(-45deg) scale(0.8)}
}
@keyframes pinchRight {
0%,100%{top:70%;right:20%;transform:translate(50%,-50%) rotate(135deg) scale(1)}
50%{top:50%;right:40%;transform:translate(50%,-50%) rotate(135deg) scale(0.8)}
}
.pinch-instruction-close{width:100%;max-width:400px;padding:1rem 2rem;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;border:none;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #6366f166;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif}
.pinch-instruction-close:hover{transform:translateY(-2px);box-shadow:0 6px 16px #6366f180}
.pinch-instruction-close:active{transform:translateY(0)}
.pinch-instruction-checkbox{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:1rem;font-size:.9rem;color:#fff;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;font-weight:400;text-shadow:0 2px 8px #0000004d}
.pinch-instruction-checkbox input[type="checkbox"]{width:20px;height:20px;cursor:pointer;accent-color:var(--primary)}
.pinch-instruction-checkbox label{cursor:pointer;user-select:none}
[data-theme="dark"] .pinch-instruction-content{background:transparent}
[data-theme="dark"] .pinch-instruction-title{color:#fff}
[data-theme="dark"] .pinch-instruction-text{color:#fff}
[data-theme="dark"] .pinch-animation-container{background:#fff}
[data-theme="dark"] .pinch-instruction-checkbox{color:#fff}
@media (min-width: 769px) {
.pinch-instruction-overlay{display:none!important}
.crossword-grid.instruction-active .crossword-grid-table{filter:none;-webkit-filter:none}
.crossword-grid.instruction-active::before{display:none}
}
@media (max-width: 450px) {
.pinch-instruction-text{font-size:.85rem}
.pinch-instruction-content{padding:.4rem}
}
@media (max-width: 380px) {
.pinch-instruction-content{padding:.3rem}
.pinch-instruction-title{padding:.5rem 0;font-size:1.3rem}
.pinch-instruction-text{font-size:.8rem}
.pinch-animation-container{width:180px;height:180px}
.pinch-hand{width:45px;height:45px;font-size:1.3rem}
.pinch-instruction-close{padding:.9rem 1.5rem;font-size:1rem}
}


.spoiler-container{background:var(--card-light);border-radius:1rem;overflow:hidden;box-shadow:0 2px 8px #00000014;margin-bottom:1.5rem;border:1px solid var(--border-light)}
.spoiler-header{padding:1rem 1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;transition:all .2s ease;user-select:none;background:var(--card-light);border:none}
.spoiler-header:hover{background:var(--bg-light)}
.spoiler-title{display:flex;align-items:center;gap:.625rem}
.spoiler-title h2{color:var(--text-light);font-size:1.25rem;font-weight:600;margin:0}
[data-theme="dark"] .spoiler-title h2{color:var(--text-dark)}
.spoiler-icon{font-size:1.25rem;color:var(--text-light);transition:transform .3s ease;opacity:.6}
[data-theme="dark"] .spoiler-icon{color:var(--text-dark)}
.spoiler-icon.rotated{transform:rotate(180deg)}
.spoiler-content{max-height:0;overflow:hidden;transition:max-height .5s ease}
.spoiler-content.open{max-height:5000px}
.instruction-step{counter-increment:step-counter;padding:1.25rem;background:transparent;border:none;border-bottom:1px solid var(--border-light);transition:all .3s ease;position:relative;margin:0}
.instruction-step:first-child{border-top:none}
.step-content{width:100%}
.step-content h3{font-size:1.15rem;font-weight:600;color:var(--text-light);margin:0 0 .5rem;display:flex;align-items:flex-start;gap:.5rem;line-height:1}
[data-theme="dark"] .step-content h3{color:var(--text-dark)}
.step-content h3::before{content:counter(step-counter);display:inline-flex;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;border-radius:50%;font-weight:600;font-size:.75rem;flex-shrink:0;line-height:1}
.step-content p{font-size:.9375rem;color:var(--text-light);margin:0;line-height:1.6;opacity:.8}
[data-theme="dark"] .step-content p{color:var(--text-dark)}
[data-theme="dark"] .step-content li{color:var(--text-dark)}
.tips-section{background:transparent;padding:1.25rem;border-top:1px solid var(--border-light);margin:0}
.tips-section h3{color:var(--text-light);font-size:1.05rem;font-weight:600;margin-bottom:1rem;display:flex;align-items:center;gap:.75rem}
[data-theme="dark"] .tips-section h3{color:var(--text-dark)}
.tips-section h3::before{content:"\f0eb";font-family:"Font Awesome 6 Free";font-weight:900;font-size:1.25rem;color:var(--success)}
.tips-list{list-style:none;padding:0;margin:0}
.tips-list li{color:var(--text-light);padding:.875rem 0;border-bottom:1px solid var(--border-light);display:flex;align-items:flex-start;gap:.75rem;line-height:1.6;font-size:.9375rem;opacity:.8}
[data-theme="dark"] .tips-list li{color:var(--text-dark)}
.tips-list li:last-child{border-bottom:none;padding-bottom:0}
.tips-list i{color:var(--success);font-size:1rem;margin-top:.25rem;flex-shrink:0}
@media (max-width: 768px) {
.instruction-step{padding:1rem}
.step-content h3{font-size:1rem;line-height:1.2rem}
.step-content p{font-size:.875rem}
.spoiler-title h2,.progress-label,.answers-spoiler-title h2,.progress-percentage{font-size:1rem}
.tips-section{padding:1rem}
}
@media (max-width: 480px) {
.spoiler-title h2{font-size:1rem}
}


/* Виртуальная клавиатура для специальных букв */
.virtual-keyboard {
    display: none;
    background: var(--card-light);
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.virtual-keyboard.show {
    display: block;
}

.keyboard-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-align: center;
}

[data-theme="dark"] .keyboard-title {
    color: var(--text-dark);
}

.keyboard-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.keyboard-buttons.two-rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
    gap: 0.4rem;
}

.keyboard-btn {
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.keyboard-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.4);
}

.keyboard-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

@media (min-width: 769px) {
    .virtual-keyboard {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .keyboard-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
}