*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;color:#333}.container{max-width:1200px;margin:0 auto;padding:20px}header{text-align:center;margin-bottom:30px;background:#fff;padding:20px;border-radius:10px;box-shadow:0 4px 6px #0000001a}header h1{font-size:2.5rem;color:#667eea;margin-bottom:15px}nav{display:flex;justify-content:center;gap:20px}.nav-link{padding:10px 30px;text-decoration:none;color:#666;border-radius:5px;transition:all .3s ease;font-weight:500}.nav-link:hover{background:#f0f0f0;color:#667eea}.nav-link.active{background:#667eea;color:#fff}main{background:#fff;padding:30px;border-radius:10px;box-shadow:0 4px 6px #0000001a;min-height:500px}.alert{padding:15px;border-radius:5px;margin-bottom:20px}.alert-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.game-container{text-align:center}.difficulty-selection{padding:40px}.difficulty-selection h2{font-size:2rem;color:#667eea;margin-bottom:30px}.difficulty-buttons{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}.difficulty-btn{padding:15px 40px;font-size:1.2rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;color:#fff}.difficulty-btn[data-difficulty=EASY]{background:#48bb78}.difficulty-btn[data-difficulty=MEDIUM]{background:#ed8936}.difficulty-btn[data-difficulty=HARD]{background:#f56565}.difficulty-btn:hover{transform:scale(1.05);box-shadow:0 4px 12px #0003}.game-board-container{padding:20px}.game-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding:15px;background:#f7fafc;border-radius:8px}.turn-indicator{font-size:1.2rem;font-weight:700;color:#667eea}.game-stats{display:flex;gap:20px}.game-stats span{color:#666}.btn-reset{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:5px;cursor:pointer;font-weight:700;transition:all .3s ease}.btn-reset:hover{background:#5568d3}.game-board{display:inline-grid;grid-template-columns:repeat(7,70px);grid-template-rows:repeat(6,70px);gap:10px;padding:20px;background:#2d3748;border-radius:10px;box-shadow:0 8px 16px #0003}.cell{width:70px;height:70px;background:#4a5568;border-radius:50%;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;position:relative}.cell:hover:not(.filled){background:#5a6578;transform:scale(1.05)}.cell.filled{cursor:not-allowed}.disc{width:60px;height:60px;border-radius:50%;position:absolute;animation:dropDisc .5s ease-in}.disc.no-animation{animation:none}@keyframes dropDisc{0%{transform:translateY(-400px)}60%{transform:translateY(5px)}80%{transform:translateY(-5px)}to{transform:translateY(0)}}.disc.player{background:radial-gradient(circle at 30% 30%,#ff6b6b,#c92a2a);box-shadow:0 2px 8px #0000004d}.disc.ai{background:radial-gradient(circle at 30% 30%,#ffd93d,#f5b800);box-shadow:0 2px 8px #0000004d}.disc.winning{animation:pulse 1s infinite}@keyframes pulse{0%,to{box-shadow:0 0 10px 5px #fffc}50%{box-shadow:0 0 20px 10px #fff6}}.game-message{margin-top:30px;padding:20px;background:#f7fafc;border-radius:8px}.game-message h2{font-size:2rem;color:#667eea}.fireworks-container{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:100;overflow:hidden}.firework{position:absolute;width:10px;height:10px;border-radius:50%;animation:firework 2s ease-out forwards}.firework:nth-child(1){left:20%;top:50%;background:#ff6b6b;animation-delay:0s}.firework:nth-child(2){left:50%;top:60%;background:#ffd93d;animation-delay:.3s}.firework:nth-child(3){left:80%;top:45%;background:#6bcb77;animation-delay:.6s}.firework:nth-child(4){left:35%;top:55%;background:#4d96ff;animation-delay:.9s}.firework:nth-child(5){left:65%;top:50%;background:#ff6bd6;animation-delay:1.2s}@keyframes firework{0%{transform:scale(1);opacity:1;box-shadow:0 0 0 0 currentColor,0 0 0 0 currentColor,0 0 0 0 currentColor,0 0 0 0 currentColor,0 0 0 0 currentColor,0 0 0 0 currentColor,0 0 0 0 currentColor,0 0 0 0 currentColor}50%{opacity:1}to{transform:scale(0);opacity:0;box-shadow:-80px -100px 0 -2px currentColor,80px -100px 0 -2px currentColor,120px 0 0 -2px currentColor,80px 100px 0 -2px currentColor,-80px 100px 0 -2px currentColor,-120px 0 0 -2px currentColor,0 -130px 0 -2px currentColor,0 130px 0 -2px currentColor}}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:200;animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.overlay-dialog{background:#fff;padding:40px;border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:450px;width:90%;text-align:center;animation:slideUp .4s ease-out}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.overlay-dialog h2{color:#667eea;font-size:1.8rem;margin-bottom:10px}.overlay-dialog>p{color:#666;margin-bottom:25px}.overlay-dialog .form-group{text-align:left;margin-bottom:20px}.overlay-dialog .form-group label{display:block;margin-bottom:8px;font-weight:700;color:#333}.overlay-dialog .form-group input{width:100%;padding:14px;border:2px solid #e2e8f0;border-radius:8px;font-size:1.1rem;transition:border-color .2s}.overlay-dialog .form-group input:focus{outline:none;border-color:#667eea}.overlay-dialog .form-stats{background:#f7fafc;padding:15px;border-radius:8px;margin-bottom:25px}.overlay-dialog .form-stats p{margin:5px 0;color:#333}.overlay-buttons{display:flex;gap:15px}.overlay-buttons .btn-submit{flex:2;padding:14px;background:#48bb78;color:#fff;border:none;border-radius:8px;font-size:1.1rem;font-weight:700;cursor:pointer;transition:background .2s}.overlay-buttons .btn-submit:hover{background:#38a169}.overlay-buttons .btn-skip{flex:1;padding:14px;background:#e2e8f0;color:#666;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:background .2s}.overlay-buttons .btn-skip:hover{background:#cbd5e0}.high-score-form{max-width:500px;margin:40px auto;padding:30px;background:#f7fafc;border-radius:10px;box-shadow:0 4px 12px #0000001a}.high-score-form h2{color:#667eea;margin-bottom:10px}.high-score-form p{color:#666;margin-bottom:20px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-weight:700;color:#333}.form-group input{width:100%;padding:12px;border:2px solid #e2e8f0;border-radius:5px;font-size:1rem}.form-group input:focus{outline:none;border-color:#667eea}.form-stats{background:#fff;padding:15px;border-radius:5px;margin-bottom:20px}.form-stats p{margin:5px 0;color:#333}.btn-submit{width:100%;padding:15px;background:#48bb78;color:#fff;border:none;border-radius:5px;font-size:1.1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.btn-submit:hover{background:#38a169}.scores-container{padding:20px}.scores-container h2{text-align:center;font-size:2rem;color:#667eea;margin-bottom:30px}.filter-controls{text-align:center;margin-bottom:30px}.filter-form{display:inline-flex;align-items:center;gap:10px}.filter-form label{font-weight:700;color:#333}.filter-form select{padding:8px 15px;border:2px solid #e2e8f0;border-radius:5px;font-size:1rem;cursor:pointer}.filter-form select:focus{outline:none;border-color:#667eea}.no-scores{text-align:center;padding:60px 20px}.no-scores p{font-size:1.2rem;color:#666;margin-bottom:20px}.btn-play{display:inline-block;padding:15px 40px;background:#667eea;color:#fff;text-decoration:none;border-radius:8px;font-weight:700;transition:all .3s ease}.btn-play:hover{background:#5568d3;transform:scale(1.05)}.scores-table{width:100%;border-collapse:collapse;box-shadow:0 2px 8px #0000001a}.scores-table thead{background:#667eea;color:#fff}.scores-table th{padding:15px;text-align:left;font-weight:700}.scores-table tbody tr{border-bottom:1px solid #e2e8f0}.scores-table tbody tr:hover{background:#f7fafc}.scores-table td{padding:15px}.rank{font-weight:700;color:#667eea;font-size:1.2rem}.badge{display:inline-block;padding:5px 12px;border-radius:12px;font-size:.85rem;font-weight:700;color:#fff}.badge-easy{background:#48bb78}.badge-medium{background:#ed8936}.badge-hard{background:#f56565}.info-container{padding:20px;max-width:800px;margin:0 auto}.info-section{margin-bottom:40px}.info-section h2{font-size:1.5rem;color:#667eea;margin-bottom:15px;padding-bottom:10px;border-bottom:2px solid #e2e8f0}.info-section h3{font-size:1.1rem;color:#4a5568;margin-top:20px;margin-bottom:12px}.info-section p{color:#4a5568;line-height:1.8;margin-bottom:15px}.info-section ul{list-style:disc;margin-left:25px;color:#4a5568;line-height:2}.info-section a{color:#667eea;text-decoration:none;font-weight:500}.info-section a:hover{text-decoration:underline}.info-section code{background:#edf2f7;padding:2px 6px;border-radius:4px;font-family:Consolas,Monaco,monospace;font-size:.9em;color:#667eea}.tech-stack{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px}.tech-item{background:#f7fafc;padding:15px;border-radius:8px;color:#4a5568}.tech-item strong{color:#667eea}footer{text-align:center;margin-top:30px;padding:20px;color:#fff}@media(max-width:768px){header h1{font-size:1.8rem}nav{flex-direction:column;gap:10px}.game-board{grid-template-columns:repeat(7,50px);grid-template-rows:repeat(6,50px);gap:8px}.cell,.disc{width:50px;height:50px}.disc{width:42px;height:42px}.difficulty-buttons{flex-direction:column}.game-info{flex-direction:column;gap:15px}.scores-table{font-size:.9rem}.scores-table th,.scores-table td{padding:10px 5px}}
