:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#f4f7f6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;display:flex;place-items:flex-start;min-width:320px;min-height:100vh;color:#333}#root{width:100%}*{box-sizing:border-box}button{cursor:pointer}.home-container{max-width:1000px;margin:0 auto;padding:4rem 2rem;min-height:100vh;display:flex;flex-direction:column}.home-header{text-align:center;margin-bottom:4rem}.home-header h1{font-size:3rem;margin-bottom:1rem;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.home-header p{font-size:1.2rem;color:#666}.app-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-bottom:4rem}.app-card{display:flex;align-items:center;padding:1.5rem;background:#fff;border-radius:20px;text-decoration:none;color:inherit;box-shadow:0 10px 20px #0000000d;transition:all .3s ease;border:2px solid transparent}.app-card:hover{transform:translateY(-5px);box-shadow:0 15px 30px #0000001a;border-color:var(--app-color)}.app-icon{font-size:3rem;margin-right:1.5rem;width:70px;height:70px;display:flex;align-items:center;justify-content:center;background:#f8f9fa;border-radius:15px}.app-content h3{margin:0 0 .5rem;font-size:1.4rem}.app-content p{margin:0;color:#777;font-size:.95rem}.app-arrow{margin-left:auto;font-size:1.5rem;color:#ccc;transition:transform .3s ease}.app-card:hover .app-arrow{transform:translate(5px);color:var(--app-color)}.home-footer{margin-top:auto;text-align:center;padding:2rem 0;color:#999;font-size:.9rem}@media (max-width: 600px){.home-header h1{font-size:2.2rem}.app-grid{grid-template-columns:1fr}}.chess-container{display:flex;flex-direction:column;align-items:center;padding:2rem;min-height:100vh;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);position:relative;overflow:hidden}.back-button-top{position:fixed;top:1.5rem;left:1.5rem;padding:.6rem 1.2rem;background:#000c;color:#fff!important;border:1px solid rgba(255,255,255,.2);border-radius:50px;cursor:pointer;z-index:9999;text-decoration:none;font-size:.9rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;align-items:center;gap:8px;box-shadow:0 4px 15px #0000004d}.back-button-top:hover{background:#fff3;transform:translate(-3px);border-color:#ffffff80}.chess-container:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:radial-gradient(circle at 20% 80%,rgba(120,119,198,.3) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(255,119,198,.2) 0%,transparent 50%);pointer-events:none}.chess-container h1{color:#fff;margin-bottom:1rem;text-shadow:2px 2px 4px rgba(0,0,0,.5);font-size:2.5rem;letter-spacing:2px;animation:titleGlow 2s ease-in-out infinite alternate;z-index:1}@keyframes titleGlow{0%{text-shadow:2px 2px 4px rgba(0,0,0,.5),0 0 10px rgba(255,255,255,.3)}to{text-shadow:2px 2px 4px rgba(0,0,0,.5),0 0 20px rgba(255,255,255,.6)}}.game-info{display:flex;align-items:center;gap:1.5rem;margin-bottom:2rem;background:#fffffff2;padding:1rem 2rem;border-radius:15px;box-shadow:0 8px 32px #0003;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:1}.game-info p{margin:0;font-size:1.2rem;font-weight:600}.turn-info{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem}.move-counter{font-size:.9rem!important;color:#666;font-weight:500!important}.reset-button{padding:.6rem 1.5rem;font-size:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:25px;cursor:pointer;transition:all .3s ease;font-weight:600;box-shadow:0 4px 15px #667eea66}.reset-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.game-area{display:flex;align-items:center;gap:1.5rem;z-index:1}.captured-panel{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:15px;padding:1rem;min-width:100px;min-height:300px;display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.2)}.captured-panel h3{color:#fff;font-size:.9rem;margin:0 0 .8rem;text-align:center;padding-bottom:.5rem;border-bottom:1px solid rgba(255,255,255,.2)}.captured-pieces{display:flex;flex-wrap:wrap;gap:.3rem;flex:1;align-content:flex-start}.captured-piece{font-size:24px;filter:drop-shadow(1px 1px 2px rgba(0,0,0,.5));animation:capturedBounce .5s ease-out}@keyframes capturedBounce{0%{transform:scale(0) rotate(-180deg);opacity:0}50%{transform:scale(1.3) rotate(0)}to{transform:scale(1) rotate(0);opacity:1}}.captured-score{color:#4caf50;font-weight:700;text-align:center;padding-top:.5rem;border-top:1px solid rgba(255,255,255,.2);margin-top:auto}.check-warning{color:#d32f2f;font-weight:700;margin-left:.5rem;animation:blink 1s infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:.5}}.game-info span.white{color:#333;font-weight:700}.game-info span.black{color:#000;font-weight:700}.game-over-message{color:#e91e63;font-weight:700;animation:winnerPulse 1s ease-in-out infinite}@keyframes winnerPulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.chess-board{border:6px solid #5d4037;border-radius:12px;box-shadow:0 20px 60px #00000080,inset 0 0 20px #0003;background:linear-gradient(135deg,#8b4513,#5d4037);padding:6px;position:relative}.chess-board:before{content:"";position:absolute;top:-3px;left:-3px;right:-3px;bottom:-3px;background:linear-gradient(45deg,#ff6b6b,#ffd93d,#6bcf7f,#4ecdc4,#a8e6cf);border-radius:14px;z-index:-1;opacity:.5;filter:blur(10px);animation:boardGlow 3s ease-in-out infinite alternate}@keyframes boardGlow{0%{opacity:.3}to{opacity:.6}}.chess-row{display:flex}.chess-square{width:65px;height:65px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;position:relative}.chess-square.light{background-color:#f0d9b5}.chess-square.dark{background-color:#b58863}.chess-square:hover{filter:brightness(1.1)}.chess-square:hover .piece{transform:scale(1.15);filter:drop-shadow(3px 3px 4px rgba(0,0,0,.4))}.chess-square.selected{background:linear-gradient(135deg,#f7f769,gold);box-shadow:inset 0 0 15px #ffd70080}.chess-square.selected .piece{animation:selectedPiece .8s ease-in-out infinite}@keyframes selectedPiece{0%,to{transform:scale(1.1)}50%{transform:scale(1.2)}}.chess-square.last-move-from{background-color:#ffeb3b66!important}.chess-square.last-move-to{background-color:#ffeb3b99!important;box-shadow:inset 0 0 10px #ffeb3bcc}.chess-square.promotion{background-color:#ffeb3b;box-shadow:inset 0 0 15px #ff980080;animation:pulse 1.5s ease-in-out infinite}.chess-square.safe-move,.chess-square.unsafe-move{position:relative}.move-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:20px;height:20px;border-radius:50%;pointer-events:none;z-index:1}.move-indicator.safe{background-color:#4caf5099}.move-indicator.unsafe{background-color:#ff9800b3;animation:dangerPulse .8s ease-in-out infinite}@keyframes dangerPulse{0%,to{transform:translate(-50%,-50%) scale(1);background-color:#ff9800b3}50%{transform:translate(-50%,-50%) scale(1.2);background-color:#ff5722e6}}.chess-square.safe-move:hover .move-indicator.safe{background-color:#4caf50cc;width:25px;height:25px}.chess-square.unsafe-move:hover .move-indicator.unsafe{background-color:#ff5722;width:25px;height:25px}.chess-square.unsafe-move.capture-move{box-shadow:inset 0 0 0 4px #ff9800b3}.chess-square.unsafe-move.capture-move:hover{box-shadow:inset 0 0 0 5px #ff5722e6;background-color:#ff98004d}.chess-square.capture-move{box-shadow:inset 0 0 0 4px #ff000080}.chess-square.capture-move:hover{box-shadow:inset 0 0 0 5px #ff0000b3;background-color:#f003}.chess-square.king-in-check{background-color:#f006!important;box-shadow:inset 0 0 0 4px #f00c;animation:checkPulse 1s ease-in-out infinite}@keyframes checkPulse{0%,to{box-shadow:inset 0 0 0 4px #f00c}50%{box-shadow:inset 0 0 0 6px red}}@keyframes pulse{0%,to{box-shadow:inset 0 0 15px #ff980080}50%{box-shadow:inset 0 0 20px #ff9800cc}}.piece{font-size:48px;-webkit-user-select:none;user-select:none;line-height:1;filter:drop-shadow(2px 2px 3px rgba(0,0,0,.4));transition:all .2s ease;cursor:grab}.piece:active{cursor:grabbing}.piece.white{color:#fff;text-shadow:1px 1px 2px rgba(0,0,0,.6),0 0 10px rgba(255,255,255,.3)}.piece.black{color:#1a1a1a;text-shadow:1px 1px 2px rgba(255,255,255,.4),0 0 10px rgba(0,0,0,.3)}.confetti-container{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999;overflow:hidden}.confetti-piece{position:absolute;border-radius:2px;animation:confettiFall linear forwards}@keyframes confettiFall{0%{transform:translateY(-100vh) rotate(0);opacity:1}to{transform:translateY(100vh) rotate(720deg);opacity:0}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease-in}.modal{background:linear-gradient(135deg,#fff,#f5f5f5);padding:2rem;border-radius:20px;box-shadow:0 20px 60px #0006;text-align:center;min-width:320px;animation:modalPopIn .4s cubic-bezier(.175,.885,.32,1.275);border:2px solid rgba(255,255,255,.3)}@keyframes modalPopIn{0%{transform:scale(.5) rotate(-10deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}.modal h2{margin-top:0;color:#333;font-size:2rem}.victory-modal{background:linear-gradient(135deg,#1a1a2e,#16213e);color:#fff;min-width:380px}.victory-modal h2{color:gold;font-size:2.5rem;text-shadow:0 0 20px rgba(255,215,0,.5)}.trophy-icon{font-size:80px;animation:trophyBounce 1s ease-in-out infinite}@keyframes trophyBounce{0%,to{transform:scale(1) rotate(0)}25%{transform:scale(1.1) rotate(-5deg)}75%{transform:scale(1.1) rotate(5deg)}}.winner-name{display:inline-block;font-size:1.5rem;padding:.3rem 1rem;border-radius:20px;margin-bottom:.5rem}.winner-name.white{background:linear-gradient(135deg,#f5f5f5,#e0e0e0);color:#333}.winner-name.black{background:linear-gradient(135deg,#333,#1a1a1a);color:#fff}.winner-message{font-size:1.2rem;margin:1rem 0;font-weight:500;color:#ffffffe6;line-height:1.8}.game-stats{display:flex;justify-content:center;gap:1.5rem;margin:1.5rem 0;padding:1rem;background:#ffffff1a;border-radius:10px}.stat{display:flex;flex-direction:column;align-items:center;gap:.3rem}.stat-label{font-size:.8rem;color:#ffffffb3}.stat-value{font-size:1.3rem;font-weight:700;color:#4caf50}.new-game-button{padding:1rem 2.5rem;font-size:1.2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:30px;cursor:pointer;transition:all .3s ease;font-weight:600;box-shadow:0 5px 20px #667eea66}.new-game-button:hover{transform:translateY(-3px);box-shadow:0 8px 30px #667eea99}.promotion-modal{min-width:400px}.promotion-modal p{margin:1rem 0;font-size:1.1rem;color:#666}.promotion-options{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1.5rem}.promotion-button{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1.5rem;background:linear-gradient(135deg,#f5f5f5,#e0e0e0);border:2px solid #ddd;border-radius:10px;cursor:pointer;transition:all .3s}.promotion-button:hover{background:linear-gradient(135deg,#e3f2fd,#bbdefb);border-color:#2196f3;transform:translateY(-3px);box-shadow:0 5px 15px #2196f34d}.promotion-button .piece{font-size:50px}.promotion-label{font-size:.9rem;font-weight:600;color:#333}@media (max-width: 900px){.game-area{flex-direction:column}.captured-panel{flex-direction:row;min-height:auto;min-width:200px;gap:1rem;align-items:center}.captured-panel h3{margin:0;padding:0;border:none;white-space:nowrap}.captured-pieces{flex:1}.captured-score{margin:0;padding:0;border:none}}@media (max-width: 600px){.chess-square{width:42px;height:42px}.piece{font-size:32px}.chess-container h1{font-size:1.5rem}.game-info{flex-direction:column;padding:1rem;gap:.8rem}.turn-info{align-items:center}.captured-panel{padding:.8rem;min-width:150px}.captured-piece{font-size:18px}.modal{min-width:280px;padding:1.5rem}.victory-modal{min-width:280px}.trophy-icon{font-size:60px}.game-stats{gap:1rem;padding:.8rem}.stat-value{font-size:1.1rem}.promotion-modal{min-width:280px}.promotion-options{grid-template-columns:repeat(2,1fr);gap:.8rem}.promotion-button{padding:1rem}.promotion-button .piece{font-size:35px}}.coin-toss-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.coin-toss-modal{background:linear-gradient(145deg,#2a2a4a,#1a1a2e);border-radius:24px;padding:2.5rem;min-width:400px;max-width:500px;box-shadow:0 25px 50px #00000080,0 0 100px #7877c64d;border:2px solid rgba(255,255,255,.1);text-align:center;animation:modalAppear .5s cubic-bezier(.34,1.56,.64,1)}@keyframes modalAppear{0%{opacity:0;transform:scale(.8) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}.coin-toss-modal h2{color:#fff;font-size:2rem;margin-bottom:.5rem;text-shadow:0 0 20px rgba(255,215,0,.5)}.coin-toss-subtitle{color:#ffffffb3;font-size:1rem;margin-bottom:2rem}.player-input-phase{display:flex;flex-direction:column;gap:1.5rem}.player-input-group{display:flex;flex-direction:column;gap:.5rem;text-align:left}.player-input-group label{color:#fff;font-size:1.1rem;font-weight:600}.player-input-group input{padding:.8rem 1rem;border-radius:12px;border:2px solid rgba(255,255,255,.2);background:#ffffff1a;color:#fff;font-size:1rem;transition:all .3s ease}.player-input-group input:focus{outline:none;border-color:#7877c6;background:#ffffff26;box-shadow:0 0 20px #7877c64d}.player-input-group input::placeholder{color:#fff6}.next-button{padding:1rem 2rem;border-radius:12px;border:none;background:linear-gradient(135deg,#7877c6,#5a59a0);color:#fff;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease;margin-top:1rem}.next-button:hover{transform:translateY(-2px);box-shadow:0 10px 30px #7877c666}.choose-side-phase{display:flex;flex-direction:column;gap:1.5rem}.chooser-name{color:gold;font-size:1.2rem;font-weight:600;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.coin-preview{display:flex;justify-content:center;margin:1rem 0}.coin-static{width:120px;height:120px;border-radius:50%;background:linear-gradient(145deg,gold,#b8860b,gold);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 40px #ffd7004d,inset 0 5px 15px #ffffff80,inset 0 -5px 15px #0000004d;animation:coinIdle 3s ease-in-out infinite}@keyframes coinIdle{0%,to{transform:rotateY(0)}50%{transform:rotateY(15deg)}}.coin-static .coin-face{font-size:60px;text-shadow:0 2px 5px rgba(0,0,0,.3)}.side-buttons{display:flex;gap:1rem;justify-content:center}.side-button{flex:1;padding:1.2rem 1.5rem;border-radius:16px;border:3px solid transparent;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:1px;white-space:nowrap}.side-button.heads{background:linear-gradient(145deg,gold,#ff8c00);color:#1a1a2e}.side-button.heads:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 15px 40px #ffd70066;border-color:#fff}.side-button.tails{background:linear-gradient(145deg,#6366f1,#8b5cf6);color:#fff}.side-button.tails:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 15px 40px #8b5cf666;border-color:#fff}.flipping-phase{display:flex;flex-direction:column;align-items:center;gap:2rem}.flipping-phase p{color:#fff;font-size:1.3rem;animation:pulse .8s ease-in-out infinite}.coin-container{perspective:1000px;width:150px;height:150px}.coin{width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform .1s}.coin.flipping{animation:coinFlip 2.5s cubic-bezier(.35,0,.25,1)}@keyframes coinFlip{0%{transform:translateY(0) rotateX(0)}15%{transform:translateY(-200px) rotateX(540deg)}30%{transform:translateY(-350px) rotateX(1080deg)}50%{transform:translateY(-400px) rotateX(1800deg)}70%{transform:translateY(-250px) rotateX(2520deg)}85%{transform:translateY(-100px) rotateX(3060deg)}to{transform:translateY(0) rotateX(3600deg)}}.coin-face{position:absolute;width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:70px;backface-visibility:hidden;box-shadow:0 10px 40px #0000004d,inset 0 5px 20px #ffffff80,inset 0 -5px 20px #0000004d}.coin-face.heads{background:linear-gradient(145deg,gold,#daa520,gold)}.coin-face.tails{background:linear-gradient(145deg,#8b5cf6,#6366f1,#8b5cf6);transform:rotateX(180deg)}.coin.result-heads{transform:rotateX(0)}.coin.result-tails{transform:rotateX(180deg)}.result-phase{display:flex;flex-direction:column;align-items:center;gap:1.5rem}.result-text{text-align:center}.result-side{font-size:1.8rem;font-weight:700;color:gold;margin-bottom:.5rem;animation:resultReveal .5s ease-out}@keyframes resultReveal{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.winner-announcement{color:#fff;font-size:1.2rem}.winner-name{color:#4ade80;font-weight:700;font-size:1.4rem}.player-colors{display:flex;align-items:center;gap:1.5rem;margin:1rem 0;padding:1rem 1.5rem;background:#ffffff1a;border-radius:16px}.player-color{display:flex;align-items:center;gap:.5rem;font-size:1.1rem;font-weight:600}.player-color.white-player{color:#f0f0f0}.player-color.black-player{color:#9ca3af}.color-indicator{font-size:1.5rem}.vs-badge{color:#ffffff80;font-weight:700;font-size:.9rem}.start-game-button{padding:1.2rem 3rem;border-radius:16px;border:none;background:linear-gradient(135deg,#4ade80,#22c55e);color:#fff;font-size:1.3rem;font-weight:700;cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:2px;margin-top:.5rem}.start-game-button:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 15px 40px #4ade8066}.players-display{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;z-index:1}.player-badge{padding:.6rem 1.2rem;border-radius:30px;font-weight:600;font-size:1rem;transition:all .3s ease;border:3px solid transparent}.player-badge.white{background:linear-gradient(135deg,#f8f8f8,#e0e0e0);color:#333}.player-badge.black{background:linear-gradient(135deg,#4a4a4a,#2a2a2a);color:#fff}.player-badge.active{transform:scale(1.1);box-shadow:0 5px 20px #ffd70080;border-color:gold;animation:activePulse 1s ease-in-out infinite}@keyframes activePulse{0%,to{box-shadow:0 5px 20px #ffd70080}50%{box-shadow:0 5px 30px #ffd700cc}}.vs-badge{color:#fff9;font-weight:700;font-size:.9rem;text-shadow:0 2px 4px rgba(0,0,0,.5)}@media (max-width: 600px){.coin-toss-modal{min-width:90%;padding:1.5rem}.coin-toss-modal h2{font-size:1.5rem}.side-buttons{flex-direction:column}.coin-container{width:120px;height:120px}.coin-face{font-size:50px}.player-colors,.players-display{flex-direction:column;gap:.5rem}.player-badge{font-size:.9rem;padding:.5rem 1rem}}.lotto-container{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:100vh;padding:5rem 1rem 2rem;background-color:#f0f2f5;position:relative}.lotto-container h1{margin-bottom:.5rem;color:#1a1a1a}.set-selector{display:flex;gap:.5rem;margin:1.5rem 0;width:100%;max-width:500px;justify-content:center}.count-button{padding:.5rem 1rem;border:1px solid #ddd;background:#fff;border-radius:10px;cursor:pointer;transition:all .2s;font-weight:600;flex:1;min-width:0;white-space:nowrap}.count-button.active{background:#4caf50;color:#fff;border-color:#4caf50;box-shadow:0 4px 10px #4caf504d}.results-container{display:flex;flex-direction:column;gap:1.5rem;margin:2rem 0;width:100%;max-width:600px}.ball-row{display:flex;align-items:center;background:#fff;padding:1rem 1.5rem;border-radius:15px;box-shadow:0 4px 10px #0000000d;width:100%}.set-label{font-weight:700;color:#888;width:45px;font-size:.9rem;flex-shrink:0}.ball-display{display:flex;flex-direction:row;gap:.8rem;flex-wrap:nowrap;flex:1;justify-content:center}.lotto-ball{width:45px;height:45px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.1rem;font-weight:700;box-shadow:0 3px 6px #00000026,inset 0 -3px 3px #00000026;animation:ballAppear .5s cubic-bezier(.175,.885,.32,1.275) forwards}.lotto-ball.empty{background-color:#eee;color:#ccc;box-shadow:none}@keyframes ballAppear{0%{transform:scale(0) rotate(-180deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}.generate-button{padding:1rem 3rem;font-size:1.2rem;background:linear-gradient(135deg,#4caf50,#2e7d32);color:#fff;border:none;border-radius:50px;cursor:pointer;box-shadow:0 10px 20px #4caf504d;transition:all .3s ease;margin-top:1rem}.generate-button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 15px 30px #4caf5066}.generate-button:disabled{background:#ccc;cursor:not-allowed;box-shadow:none}@media (max-width: 600px){.lotto-container{padding-top:4rem}.back-button-top{top:1rem;left:1rem;padding:.5rem 1rem;font-size:.8rem}.set-selector{gap:.3rem}.count-button{padding:.5rem .2rem;font-size:.8rem}.ball-row{padding:.8rem .5rem;gap:.5rem}.lotto-ball{width:32px;height:32px;font-size:.85rem}.ball-display{gap:.3rem}.set-label{width:35px;font-size:.75rem}.generate-button{width:90%;padding:.8rem 1rem;font-size:1.1rem}}.cat-container{display:flex;flex-direction:column;align-items:center;min-height:100vh;padding:2rem;background-color:#fff9f0;position:relative}.back-button-top:hover{background:#0009;transform:translate(-5px);border-color:#ffffff80;box-shadow:0 6px 20px #0000004d}@media (max-width: 600px){.back-button-top{top:1rem;left:1rem;padding:.5rem 1rem;font-size:.8rem}}.api-key-section{width:100%;max-width:400px;margin-bottom:2rem;text-align:center}.api-toggle{background:none;border:1px solid #ddd;padding:.5rem 1rem;border-radius:20px;font-size:.8rem;color:#888;cursor:pointer;margin-bottom:1rem}.api-input-group input{width:100%;padding:.8rem;border-radius:10px;border:1px solid #ddd;margin-bottom:.5rem}.api-hint{font-size:.75rem;color:#aaa}.cat-card{width:100%;max-width:500px;height:400px;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 15px 35px #0000001a;display:flex;align-items:center;justify-content:center;margin-bottom:2rem;border:8px solid white}.cat-image{width:100%;height:100%;object-fit:cover;animation:fadeIn .5s ease}.cat-loader{color:#ff9800;font-weight:700}.fetch-button{padding:1rem 3rem;font-size:1.2rem;background:linear-gradient(135deg,#ff9800,#f57c00);color:#fff;border:none;border-radius:50px;cursor:pointer;box-shadow:0 10px 20px #ff98004d;transition:all .3s ease}.fetch-button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 15px 30px #ff980066}.fetch-button:disabled{background:#ccc;cursor:not-allowed}@media (max-width: 600px){.cat-card{height:300px}}.tetris-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background-color:#1a1a1a;color:#fff;padding:2rem;font-family:Courier New,Courier,monospace}.back-button-top{position:fixed;top:1.5rem;left:1.5rem;padding:.6rem 1.2rem;background:#000c!important;color:#fff!important;border:1px solid rgba(255,255,255,.2);border-radius:50px;cursor:pointer;z-index:9999;text-decoration:none;font-size:.9rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;align-items:center;gap:8px;box-shadow:0 4px 15px #0000004d}.back-button-top:hover{background:#0009;transform:translate(-5px);border-color:#ffffff80}.tetris-layout{display:flex;gap:3rem;align-items:flex-start;background:#2a2a2a;padding:2rem;border-radius:20px;box-shadow:0 20px 50px #00000080}.game-sidebar{display:flex;flex-direction:column;gap:1.5rem;width:200px}.game-sidebar h1{margin:0;font-size:2rem;letter-spacing:4px;background:linear-gradient(to right,#00f0f0,#a000f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.stage-info{background:#000;padding:.8rem;border-radius:10px;text-align:center;border:2px solid #00f0f0;box-shadow:0 0 10px #00f0f04d}.stage-info span{font-size:.7rem;color:#00f0f0;letter-spacing:2px}.stage-info h3{margin:.3rem 0 0;font-size:1.5rem;color:#fff}.score-box{background:#000;padding:.8rem;border-radius:10px;text-align:center;border:2px solid #444}.score-box span{font-size:.7rem;color:#888}.score-box h2{margin:.3rem 0 0;font-size:1.5rem}.tetris-cell.ghost{background-color:transparent!important;border:2px solid currentColor;opacity:.4}.start-msg h2{color:#00f0f0;font-size:2.5rem;margin-bottom:1.5rem}.start-btn{padding:1rem 3rem!important;font-size:1.5rem!important;background:#00f0f0!important;color:#000!important;transition:all .2s!important}.start-btn:hover{transform:scale(1.1);box-shadow:0 0 20px #00f0f080}.controls-guide{font-size:.8rem;color:#aaa;line-height:1.6}.tetris-reset-btn{padding:.8rem;background:#f44;color:#fff;border:none;border-radius:10px;font-weight:700;cursor:pointer;transition:opacity .2s}.tetris-reset-btn:hover{opacity:.8}.tetris-board-wrapper{background:#000;padding:5px;border:4px solid #444;border-radius:5px}.tetris-board{display:grid;grid-template-rows:repeat(20,30px);grid-template-columns:repeat(10,30px);gap:1px;background:#111;position:relative}.tetris-cell{width:30px;height:30px;background:#000;box-sizing:border-box}.tetris-cell.filled{border:3px solid rgba(255,255,255,.1);box-shadow:inset 0 0 8px #00000080}.tetris-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:5px}.game-over-msg,.pause-msg{text-align:center}.game-over-msg h2{color:#f44}.pause-msg h2{color:#00f0f0}.tetris-overlay button{margin-top:1rem;padding:.5rem 1.5rem;background:#fff;color:#000;border:none;border-radius:5px;font-weight:700;cursor:pointer}.mobile-controls-container{display:none;position:fixed;bottom:30px;left:0;width:100%;padding:0 20px;justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:100}.left-controls,.right-controls{pointer-events:auto;display:flex;flex-direction:column;gap:15px}.d-pad{display:flex;align-items:center;gap:10px}.d-pad-vertical{display:flex;flex-direction:column}.control-btn{width:65px;height:65px;background:#ffffff26;border:2px solid rgba(255,255,255,.3);border-radius:50%;color:#fff;font-size:1.2rem;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);box-shadow:0 4px 10px #0000004d}.control-btn:active{background:#fff6;transform:scale(.9)}.rotate-btn{width:85px;height:85px;background:#00f0f04d;border-color:#00f0f0;font-weight:700;font-size:.9rem}.drop-btn{width:85px;height:85px;background:#a000f04d;border-color:#a000f0;font-weight:700;font-size:.9rem}@media (max-width: 700px){.tetris-container{padding:0;height:100vh;overflow:hidden;justify-content:flex-start;background-color:#000}.tetris-layout{flex-direction:column;align-items:center;gap:0;padding:0;width:100%;height:100%;display:flex}.game-sidebar{width:100%;height:70px;flex-direction:row;align-items:center;justify-content:flex-end;padding:0 1rem;background:#1a1a1a;border-radius:0;flex-shrink:0;z-index:5;border-bottom:1px solid #333;gap:10px}.game-sidebar h1,.game-sidebar .controls-guide{display:none!important}.score-box,.stage-info{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#000;border-radius:8px;padding:.2rem .6rem;min-width:65px;height:50px;border:1px solid #333}.stage-info{border-color:#00f0f0}.score-box span,.stage-info span{font-size:.6rem;color:#888;margin-bottom:1px}.stage-info span{color:#00f0f0}.score-box h2,.stage-info h3{margin:0;font-size:1.1rem;line-height:1;color:#fff}.tetris-reset-btn{padding:.5rem 1rem;font-size:.85rem;height:40px;border-radius:8px}.tetris-board-wrapper{margin:0;padding:15px;flex:1;display:flex;align-items:center;justify-content:center;width:100%;background:#000;box-sizing:border-box;overflow:hidden}.tetris-board{--max-board-width: calc(100vw - 60px) ;--max-board-height: calc(100vh - 320px) ;--cell-size: min(calc(var(--max-board-width) / 10), calc(var(--max-board-height) / 20));grid-template-rows:repeat(20,var(--cell-size));grid-template-columns:repeat(10,var(--cell-size));border:2px solid #333;gap:1px;background:#111;margin-bottom:20px}.tetris-cell{width:var(--cell-size);height:var(--cell-size)}.mobile-controls-container{display:flex;position:relative;width:100%;padding:.5rem 1rem 1.5rem;background:#111;border-top:1px solid #333;flex-shrink:0;height:150px;justify-content:space-between;align-items:center}.control-btn{width:55px;height:55px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2)}.rotate-btn,.drop-btn{width:70px;height:70px;font-weight:700}.back-button-top{top:1.2rem!important;left:1.2rem!important;padding:.5rem 1rem!important;font-size:.85rem!important;z-index:100}}.app-wrapper{min-height:100vh;width:100%}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.page-fade-in{animation:fadeIn .3s ease-in}
