.games-container{max-width:fit-content;margin:0 auto;padding:20px}
.games-title{font-size:2em;margin:0}
.games-desc{font-size:1.2em;color:#666;margin-bottom:40px}
.games-list{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:20px}
.game-card{flex:1 1 200px;padding:20px;background:#fff;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,0.1);text-align:center;border:1px solid #eee}
.game-input{margin-bottom:10px;border-radius:10px;padding:5px;border:1px solid #777}
.game-btn{width:unset;margin:0 auto;border-radius:16px;display:inline;opacity.8!important}
.game-card h3{margin:0 0 10px}
.game-card p{color:#666;margin-bottom:20px}
.game-start-btn{background:#c2c3ff;color:#fff;border:none;padding:10px 20px;border-radius:24px;cursor:pointer;transition:.2s;font-size:16px}
.game-start-btn:hover{opacity:.8}
.rating-section{background:#f8f9fa;padding:20px;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,0.1);border:1px solid #eee;margin-bottom:10px}
.rating-title{margin:10px 0}
.rating-table{width:100%;border-collapse:collapse}
.rating-table th,.rating-table td{padding:10px;text-align:left;border-bottom:1px solid #ddd}
.rating-table th{background:#e9ecef;font-weight:700}
.dark-theme .game-card,.dark-theme .rating-section{background:#333;color:#e0e0e0;border-color:#333}
.dark-theme .rating-table th{background:#444}
.dark-theme .rating-table td{border-bottom-color:#555}
.dark-theme .game-start-btn{background:#6f70a9;color:#e5e5e5}
.dark-theme .game-input{background:#222;color:#ccc}
.game-start-reset{background:#ff9800!important}
.dark-theme .game-start-reset{background:#994a1f!important}
.contact-action.disabled{color:#999;font-weight:500}
.contact-item.disabled-item:hover{background:#f8f9fa;border-color:transparent;cursor:default}
.dark-theme .contact-action.disabled{color:#666}
.dark-theme .contact-item.disabled-item:hover{background:#37474f}
.ttt-game{max-width:fit-content;text-align:center;padding:0 30px;margin:0 auto}
.ttt-game h3,.checkers-game h3{font-size:1.3em;margin-bottom:10px;color:#5d5fef;text-shadow:0 2px 4px rgba(0,0,0,0.1);font-weight:700}
.ttt-board{width:fit-content;display:grid;grid-template-columns:repeat(3,0fr);gap:8px;margin:25px auto;justify-content:center;background:linear-gradient(145deg,#e3e4ff,#c2c3ff);padding:15px;border-radius:15px;box-shadow:inset 0 2px 4px rgba(0,0,0,0.1),0 5px 15px rgba(0,0,0,0.1)}
.ttt-cell{aspect-ratio:1;border:none;display:flex;align-items:center;justify-content:center;font-size:3.5em;cursor:pointer;background:white;transition:all .3s cubic-bezier(0.4,0,0.2,1);width:90px;height:90px;border-radius:12px;box-shadow:0 4px 8px rgba(0,0,0,0.1),inset 0 1px 0 rgba(255,255,255,0.8);position:relative;overflow:hidden}
.ttt-cell::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.4),transparent);transition:left .5s ease}
.ttt-cell:hover::before{left:100%}
.ttt-cell:hover{background:#f8f9ff;transform:translateY(-2px) scale(1.02);box-shadow:0 6px 12px rgba(0,0,0,0.15),inset 0 1px 0 rgba(255,255,255,0.9)}
.ttt-cell:active{transform:translateY(0) scale(0.98);transition:transform .1s ease}
.ttt-cell.disabled{cursor:not-allowed;background:#f8f9fa;opacity:.6;transform:none;box-shadow:0 2px 4px rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.6)}
.ttt-cell.disabled:hover{background:#f8f9fa;transform:none;box-shadow:0 2px 4px rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.6)}
.ttt-cell[data-value="X"]{color:#ff6b6b;text-shadow:0 2px 4px rgba(255,107,107,0.3);font-weight:700}
.ttt-cell[data-value="O"]{color:#4ecdc4;text-shadow:0 2px 4px rgba(78,205,196,0.3);font-weight:700}
.ttt-cell:not(:empty){animation:symbolAppear .3s cubic-bezier(0.4,0,0.2,1)}
@keyframes symbolAppear {
0%{transform:scale(0) rotate(-180deg);opacity:0}
100%{transform:scale(1) rotate(0deg);opacity:1}
}
#ttt-game #status{width:fit-content;font-style:normal;font-size:1.2em;margin:20px auto;padding:12px 20px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border-radius:25px;box-shadow:0 4px 15px rgba(102,126,234,0.3);animation:pulseGlow 3s infinite}
@keyframes pulseGlow {
0%,100%{box-shadow:0 4px 15px rgba(102,126,234,0.9);opacity:1;transform:scale(1)}
50%{box-shadow:0 4px 20px rgba(102,126,234,0.6);opacity:.75;transform:scale(.95)}
}
#ttt-game .game-start-btn,#battleship-invite-section .game-start-btn,#checkers-game .game-start-btn{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border:none;padding:12px 30px;border-radius:25px;cursor:pointer;font-size:16px;font-weight:600;transition:all .3s ease;box-shadow:0 4px 15px rgba(102,126,234,0.3);margin:5px}
#ttt-game .game-start-btn:hover,#battleship-invite-section .game-start-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(102,126,234,0.4);opacity:1}
#ttt-game .game-start-btn:active,#battleship-invite-section .game-start-btn:active{transform:translateY(0)}
#ttt-game .avatar-delete-btn,.#checkers-game .avatar-delete-btn{background:linear-gradient(135deg,#ff6b6b 0%,#ee5a52 100%);color:white;border:none;padding:12px 30px;border-radius:25px;cursor:pointer;font-size:16px;font-weight:600;transition:all .3s ease;box-shadow:0 4px 15px rgba(255,107,107,0.3);margin:5px}
#ttt-game .avatar-delete-btn:hover,#checkers-game .avatar-delete-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(255,107,107,0.4)}
.ttt-cell.winning-cell{animation:winPulse .6s ease-in-out 3;background:linear-gradient(135deg,#fff9c4,#fff176)!important}
@keyframes winPulse {
0%,100%{transform:scale(1);box-shadow:0 4px 8px rgba(0,0,0,0.1)}
50%{transform:scale(1.1);box-shadow:0 6px 20px rgba(255,193,7,0.4)}
}
.ttt-cell.disabled{cursor:not-allowed;background:#f8f9fa;opacity:.6;transform:none;box-shadow:0 2px 4px rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.6)}
.ttt-cell.disabled:hover{background:#f8f9fa;transform:none;box-shadow:0 2px 4px rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.6)}
.dark-theme .ttt-game h3,.dark-theme .checkers-game h3{color:#6885c1;text-shadow:0 2px 4px rgba(0,0,0,0.3)}
.dark-theme .ttt-board{background:linear-gradient(145deg,#4a5568,#2d3748);box-shadow:inset 0 2px 4px rgba(0,0,0,0.3),0 5px 15px rgba(0,0,0,0.3)}
.dark-theme .ttt-cell{background:#4a5568;box-shadow:0 4px 8px rgba(0,0,0,0.3),inset 0 1px 0 rgba(255,255,255,0.1)}
.dark-theme .ttt-cell:hover{background:#5a6578;box-shadow:0 6px 12px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,255,255,0.15)}
.dark-theme .ttt-cell.disabled{background:#212835;box-shadow:0 2px 4px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.05);cursor:not-allowed}
.dark-theme .ttt-cell.disabled:hover{background:#3c4657}
.dark-theme #ttt-game #status{background:linear-gradient(135deg,#7a66a7 0%,#583d97 100%);box-shadow:0 4px 15px rgba(128,90,213,0.3);filter:brightness(0.9)}
.dark-theme .ttt-cell.winning-cell{background:linear-gradient(135deg,#744210,#d69e2e)!important}
@media (max-width: 480px) {
.ttt-game{max-width:320px;margin:20px auto;margin:0 auto}
.ttt-cell{width:80px;height:80px;font-size:3em}
.ttt-board{padding:12px;gap:6px}
#ttt-game #status{font-size:1.1em;padding:10px 16px}
}
@media (max-width: 360px) {
.ttt-game{max-width:280px;padding:15px}
.ttt-cell{width:70px;height:70px;font-size:2.5em}
}
.battleship-game{max-width:fit-content;margin:10px auto;text-align:center;padding:0 10px}
.battleship-game h3{font-size:1.3em;margin-bottom:25px;color:#5d5fef;text-shadow:0 2px 4px rgba(0,0,0,0.1);font-weight:700}
.battleship-container{display:flex;gap:20px;justify-content:center;margin:20px 0;flex-wrap:nowrap}
.battleship-board-container{text-align:center;padding:20px;background:linear-gradient(145deg,#e3e4ff,#c2c3ff);border-radius:20px;box-shadow:inset 0 2px 4px rgba(0,0,0,0.1),0 5px 15px rgba(0,0,0,0.1)}
.battleship-board-container h4{margin:0;color:#5d5fef;font-weight:600;font-size:1.1em}
.battleship-board{display:grid;grid-template-columns:repeat(10,0fr);gap:3px;margin:10px 0;justify-content:center;background:rgba(255,255,255,0.5);padding:15px;border-radius:15px;box-shadow:inset 0 2px 4px rgba(0,0,0,0.1)}
.battleship-cell{width:32px;height:32px;border:none;background:white;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all .3s cubic-bezier(0.4,0,0.2,1);border-radius:6px;box-shadow:0 2px 4px rgba(0,0,0,0.1),inset 0 1px 0 rgba(255,255,255,0.8);position:relative;overflow:hidden}
.battleship-cell::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.4),transparent);transition:left .5s ease}
.battleship-cell:hover::before{left:100%}
.battleship-cell:hover{background:#c2cbff;transform:translateY(-2px) scale(1.05);box-shadow:0 4px 8px rgba(0,0,0,0.15),inset 0 1px 0 rgba(255,255,255,0.9)}
.battleship-cell:active{transform:translateY(0) scale(0.95);transition:transform .1s ease}
.battleship-cell.ship{background:linear-gradient(135deg,#a6c4d3,#7596a5);box-shadow:0 2px 4px rgba(84,110,122,0.3),inset 0 1px 0 rgba(255,255,255,0.3)}
.battleship-cell.ship::after{content:"";width:70%;height:70%;background:rgba(255,255,255,0.2);border-radius:3px}
.battleship-cell.hit{background:linear-gradient(135deg,#ff6b6b,#f44336);color:white;animation:hitPulse .4s ease-in-out}
.battleship-cell.hit::after{content:"💥";font-size:14px;filter:drop-shadow(0 1px 2px rgba(0,0,0,0.3))}
.battleship-cell.miss{background:linear-gradient(135deg,#e0e0e0,#bdbdbd)}
.battleship-cell.miss::after{content:"•";color:#666;font-size:18px;font-weight:700}
.battleship-cell.hover-ship{background:linear-gradient(135deg,#c996ec,#bb86df)!important;box-shadow:0 0 8px rgba(76,175,80,0.5),inset 0 1px 0 rgba(255,255,255,0.4)}
.battleship-cell.hover-buffer{background:linear-gradient(135deg,#accbf3,#9bbfec)!important;opacity:.7;box-shadow:0 0 6px rgba(255,235,59,0.4),inset 0 1px 0 rgba(255,255,255,0.4)}
.battleship-cell.invalid-ship{background:linear-gradient(135deg,#ff6b6b,#f44336)!important;box-shadow:0 0 8px rgba(244,67,54,0.5),inset 0 1px 0 rgba(255,255,255,0.4);animation:shake .5s ease-in-out}
@keyframes hitPulse {
0%,100%{transform:scale(1)}
50%{transform:scale(1.2)}
}
@keyframes shake {
0%,100%{transform:translateX(0)}
25%{transform:translateX(-2px)}
75%{transform:translateX(2px)}
}
.battleship-cell.disabled{cursor:not-allowed;opacity:.6;pointer-events:none;transform:none!important}
#battleship-status,#checkers-status,#words-lobby-status{width:fit-content;margin:10px auto;padding:10px 15px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white!important;border-radius:25px;box-shadow:0 4px 15px rgba(102,126,234,0.3);animation:pulseGlow 3s infinite}
#ship-placement{margin:10px 0}
#ship-placement p{font-weight:600;color:#6f70d7;margin-bottom:15px;font-size:1.1em}
.ships-to-place{display:flex;gap:12px;justify-content:center;margin:10px 0;flex-wrap:wrap}
.ship-item{padding:6px 10px;background:white;border:2px solid #c2c3ff;border-radius:12px;cursor:pointer;transition:all .3s ease;font-weight:500;color:#5d5fef;box-shadow:0 2px 4px rgba(0,0,0,0.1)}
.ship-item.selected{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border-color:#5d5fef;transform:translateY(-2px);box-shadow:0 4px 8px rgba(102,126,234,0.3)}
.ship-item:hover{background:#f8f9ff;transform:translateY(-1px);box-shadow:0 3px 6px rgba(0,0,0,0.15);color:#755aff}
.ship-item.disabled{opacity:.5;cursor:not-allowed;background:#e9ecef;border-color:#adb5bd;color:#6c757d;transform:none;box-shadow:none}
.ship-item.disabled:hover{background:#e9ecef;transform:none;box-shadow:none}
.battleship-controls .game-start-btn{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border:none;padding:12px;border-radius:25px;cursor:pointer;font-size:16px;font-weight:600;transition:all .3s ease;box-shadow:0 4px 15px rgba(102,126,234,0.3);margin:5px}
.battleship-controls .game-start-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(102,126,234,0.4);opacity:1}
.battleship-controls .avatar-delete-btn,.tictactoe-controls .avatar-delete-btn,.checkers-controls .avatar-delete-btn{background:linear-gradient(135deg,#ff6b6b 0%,#ee5a52 100%);color:white;border:none;padding:12px 24px;border-radius:25px;cursor:pointer;font-size:16px;font-weight:600;transition:all .3s ease;box-shadow:0 4px 15px rgba(255,107,107,0.3);margin:5px 8px}
.battleship-controls .avatar-delete-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(255,107,107,0.4)}
.dark-theme .battleship-game h3{color:#6885c1;text-shadow:0 2px 4px rgba(0,0,0,0.3)}
.dark-theme .battleship-board-container{background:linear-gradient(145deg,#4a5568,#2d3748);box-shadow:inset 0 2px 4px rgba(0,0,0,0.3),0 5px 15px rgba(0,0,0,0.3)}
.dark-theme .battleship-board-container h4{color:#6885c1}
.dark-theme .battleship-board{background:rgba(45,55,72,0.5)}
.dark-theme .battleship-controls .game-start-btn{filter:brightness(0.8)}
.dark-theme .battleship-cell{background:#4a5568;box-shadow:0 2px 4px rgba(0,0,0,0.3),inset 0 1px 0 rgba(255,255,255,0.1)}
.dark-theme .battleship-cell:hover{background:#7d83a3;box-shadow:0 4px 8px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,255,255,0.15)}
.dark-theme .battleship-cell.ship{background:linear-gradient(135deg,#546e7a,#37474f);box-shadow:0 2px 4px rgba(55,71,79,0.4),inset 0 1px 0 rgba(255,255,255,0.2)}
.dark-theme .battleship-cell.hit{background:linear-gradient(135deg,#ba3636,#b71c1c)}
.dark-theme .battleship-cell.miss{background:linear-gradient(135deg,#555,#333)}
.dark-theme .battleship-cell.hover-ship{background:linear-gradient(135deg,#436983,#376a7f)!important}
.dark-theme .battleship-cell.hover-buffer{background:linear-gradient(135deg,#675aa5,#5d4fa5)!important}
.dark-theme .battleship-cell.invalid-ship{background:linear-gradient(135deg,#83353b,#7f292f)!important}
.dark-theme #battleship-status,.dark-theme #checkers-status,.dark-theme #words-lobby-status{background:linear-gradient(135deg,#7a66a7 0%,#583d97 100%);box-shadow:0 4px 15px rgba(128,90,213,0.3);filter:brightness(0.9)}
.dark-theme .ship-item{background:#4a5568;border-color:#6f70a9;color:#a3bffa;box-shadow:0 2px 4px rgba(0,0,0,0.3);filter:brightness(0.8)}
.dark-theme .ship-item.selected{background:linear-gradient(135deg,#805ad5 0%,#6b46c1 100%);color:white;border-color:#a3bffa}
.dark-theme .ship-item:hover{background:#5a6578}
.dark-theme .ship-item.disabled{background:#37474f;border-color:#555;color:#777}
.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,0.9);z-index:4;display:none;flex-direction:column;justify-content:center;align-items:center;transition:opacity .3s ease}
body.dark-theme .loading-overlay{background:rgba(30,30,30,0.95)}
.spinner{width:50px;height:50px;border:5px solid #e0e0e0;border-top-color:#3498db;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}
body.dark-theme .spinner{border-color:#444;border-top-color:#3498db}
@keyframes spin {
to{transform:rotate(360deg)}
}
.loading-text{font-size:1.2rem;font-weight:500;color:#333;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
body.dark-theme .loading-text{color:#fff}
.rating-tabs{display:flex;margin-bottom:20px;border-bottom:1px solid #ddd;flex-wrap:wrap}
.rating-tab{padding:10px 20px;background:none;border:none;border-bottom:3px solid transparent;cursor:pointer;font-size:16px;transition:all .3s ease;color:#666}
.rating-table a{color:#898acf;text-decoration:none}
.rating-table a:hover{text-decoration:underline}
.rating-tab:hover{color:#333;background:#f8f9fa}
.rating-tab.active{color:#c2c3ff;border-bottom-color:#c2c3ff;font-weight:700}
.rating-wrapper{overflow:auto}
.rating-tab-content{display:none;background:#fff}
.rating-tab-content.active{display:block}
.dark-theme .rating-tabs{border-bottom-color:#555}
.dark-theme .rating-tab{color:#aaa}
.dark-theme .rating-tab:hover{color:#e0e0e0;background:#444}
.dark-theme .rating-tab.active{color:#6f70a9;border-bottom-color:#6f70a9}
.dark-theme .rating-tab-content{background:#2a2a2a}
.dark-theme .rating-table th{border-bottom:1px solid #aaa}
@media (max-width: 768px) {
.rating-tabs{flex-direction:column}
.rating-tab{text-align:center;border-bottom:1px solid #ddd;border-left:3px solid transparent}
.rating-tab.active{border-bottom-color:#c2c3ff;border-left-color:#c2c3ff}
.games-desc{margin-bottom:20px}
.games-title{margin:10px 0}
.dark-theme .rating-tab{border-bottom-color:#555}
.games-container{margin:unset;padding:10px;max-width:unset}
.game-start-btn{margin-bottom:10px}
.battleship-container{gap:20px;flex-wrap:wrap}
.battleship-board-container{padding:15px}
.battleship-cell{width:28px;height:28px}
.ships-to-place{gap:8px}
.ship-item{padding:8px 12px;font-size:14px}
.backpage-btn{margin:10px auto 0!important}
}
@media (max-width: 480px) {
.battleship-game{padding:0 10px}
.battleship-game h3{margin-bottom:0}
.battleship-cell{font-size:10px}
.battleship-board-container{padding:5px}
.battleship-container{margin:10px 0;gap:10px}
.battleship-board{padding:10px;margin:0;gap:2px}
.battleship-controls .game-start-btn,.battleship-controls .avatar-delete-btn{padding:10px 16px;font-size:14px;margin:3px 5px}
}
.checkers-game{text-align:center}
.checkers-game-container{max-width:600px;margin:0 auto;padding:20px;background:var(--bg-color);border-radius:15px;box-shadow:0 4px 20px rgba(0,0,0,0.1);border:1px solid var(--border-color)}
.checkers-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid var(--border-color)}
.checkers-game-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;padding:15px;background:var(--card-bg);border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,0.1)}
.checkers-status{font-size:1.1em;font-weight:600;color:var(--text-color)}
.checkers-status.victory{color:#4CAF50;font-weight:700}
.checkers-status.defeat{color:#f44336;font-weight:700}
.checkers-timer{font-family:'Courier New',monospace;font-size:1.3em;font-weight:700;color:var(--accent-color);background:var(--card-bg);padding:5px 12px;border-radius:8px;border:2px solid var(--border-color)}
.checkers-board-container{display:flex;flex-direction:column;align-items:center;gap:20px;margin-bottom:20px}
.checkers-board{display:grid;grid-template-columns:repeat(8,50px);grid-template-rows:repeat(8,50px);border:4px solid var(--border-color);border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,0.15);background:linear-gradient(145deg,#e3e4ff,#c2c3ff);padding:10px}
.dark-theme .checkers-board{background:linear-gradient(145deg,#4a5568,#2d3748)}
.checkers-cell{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s cubic-bezier(0.4,0,0.2,1);border-radius:4px;position:relative}
.checkers-cell.light{background-color:#f0d9b5}
.checkers-cell.dark{background-color:#b58863}
.checkers-cell.selected{background-color:#aec6cf!important;box-shadow:inset 0 0 0 3px #4CAF50,0 0 10px rgba(76,175,80,0.5);transform:scale(1.05)}
.checkers-cell.possible-move::before{content:"";position:absolute;width:20px;height:20px;border-radius:50%;background:rgba(102,255,108,0.7);border:2px solid #4CAF50;animation:pulse 2s infinite}
@keyframes pulse {
0%,100%{transform:scale(1);opacity:.7}
50%{transform:scale(1.1);opacity:1}
}
.checkers-piece{width:42px;height:42px;border-radius:50%;border:3px solid transparent;transition:all .3s ease;box-shadow:0 3px 8px rgba(0,0,0,0.3);position:relative;z-index:2}
.checkers-piece.white{background:linear-gradient(135deg,#ffffff 0%,#f0f0f0 100%);border-color:#d0d0d0}
.checkers-piece.black{background:linear-gradient(135deg,#2c2c2c 0%,#1a1a1a 100%);border-color:#000}
.checkers-piece.king::after{content:"♔";font-size:26px;color:gold;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-shadow:0 1px 3px rgba(0,0,0,0.8);font-weight:700}
.checkers-piece.movable{cursor:pointer}
.checkers-piece.movable:hover{transform:translateY(-3px) scale(1.05);z-index:5}
.checkers-piece.white.movable:hover{box-shadow:0 6px 12px rgba(0,0,0,0.3),inset 0 -4px 6px rgba(0,0,0,0.15)}
.checkers-piece.black.movable:hover{box-shadow:0 6px 12px rgba(0,0,0,0.5),inset 0 -4px 6px rgba(255,255,255,0.15)}
.checkers-piece.selected{transform:translateY(-5px) scale(1.1)!important;z-index:10;transition:.2s}
.checkers-piece.white.selected{box-shadow:0 0 0 3px #FFD700,0 8px 15px rgba(0,0,0,0.4)}
.checkers-piece.black.selected{box-shadow:0 0 0 3px #a084d7,0 8px 15px rgba(0,0,0,0.6)}
.checkers-controls{display:flex;gap:15px;justify-content:center;flex-wrap:wrap;align-items:stretch}
.checkers-btn{padding:12px 24px;border:none;border-radius:25px;cursor:pointer;font-weight:600;font-size:14px;transition:all .3s ease;box-shadow:0 3px 10px rgba(0,0,0,0.2)}
.checkers-btn:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(0,0,0,0.3)}
.checkers-btn:active{transform:translateY(0)}
.surrender-btn{background:linear-gradient(135deg,#ff6b6b 0%,#ee5a52 100%);color:white}
.surrender-btn:hover{background:linear-gradient(135deg,#ff5252 0%,#e53935 100%)}
.rematch-btn{background:linear-gradient(135deg,#4CAF50 0%,#45a049 100%);color:white;display:none}
.rematch-btn:hover{background:linear-gradient(135deg,#43A047 0%,#388E3C 100%)}
.checkers-chat{margin-top:25px;border:1px solid var(--border-color);border-radius:12px;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,0.1)}
.checkers-chat-messages{height:120px;overflow-y:auto;padding:15px;background:var(--card-bg);border-bottom:1px solid var(--border-color)}
.checkers-chat-message{margin-bottom:10px;padding:8px 12px;border-radius:18px;word-wrap:break-word;max-width:80%;animation:messageAppear .3s ease}
@keyframes messageAppear {
from{opacity:0;transform:translateY(10px)}
to{opacity:1;transform:translateY(0)}
}
.checkers-chat-message.own-message{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;margin-left:auto;border-bottom-right-radius:5px}
.checkers-chat-message.opponent-message{background:var(--border-color);margin-right:auto;border-bottom-left-radius:5px}
.checkers-chat-input{display:flex;padding:15px;background:var(--bg-color);gap:10px}
.checkers-chat-input input{flex:1;padding:12px 15px;border:1px solid var(--border-color);border-radius:25px;background:var(--input-bg);color:var(--text-color);font-size:14px}
.checkers-chat-input input:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 2px rgba(102,126,234,0.2)}
.checkers-chat-input button{padding:12px 20px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border:none;border-radius:25px;cursor:pointer;font-weight:600;transition:all .3s ease}
.checkers-chat-input button:hover{transform:translateY(-1px);box-shadow:0 3px 10px rgba(102,126,234,0.3)}
.close-game-btn{background:none;border:none;font-size:1.8em;cursor:pointer;color:var(--text-color);padding:8px 12px;border-radius:50%;transition:all .3s ease}
.close-game-btn:hover{background:var(--border-color);color:var(--accent-color);transform:rotate(90deg)}
.dark-theme .checkers-cell.light{background-color:#d1b18b}
.dark-theme .checkers-cell.dark{background-color:#8b5a2b}
.dark-theme .checkers-piece.white{background:linear-gradient(135deg,#e8e8e8 0%,#d0d0d0 100%);border-color:#b0b0b0}
.dark-theme .checkers-piece.black{background:linear-gradient(135deg,#404040 0%,#282828 100%);border-color:#1a1a1a}
@media (max-width: 768px) {
.checkers-board{grid-template-columns:repeat(8,40px);grid-template-rows:repeat(8,40px);padding:8px;width:fit-content;margin:0 auto}
.checkers-piece{width:34px;height:34px}
.checkers-piece.king::after{font-size:18px}
.checkers-game-info{flex-direction:column;gap:10px;text-align:center}
.checkers-controls{flex-direction:column;width:100%;max-width:200px;margin:0 auto}
.checkers-btn{width:100%}
.checkers-chat-messages{height:100px}
}
@media (max-width: 480px) {
.checkers-board{grid-template-columns:repeat(8,35px);grid-template-rows:repeat(8,35px);padding:6px}
.checkers-piece{width:30px;height:30px}
.checkers-piece.king::after{font-size:14px}
.checkers-game-container{padding:15px}
.checkers-chat-input{flex-direction:column;gap:10px}
.checkers-chat-input button{width:100%}
}
@keyframes pieceAppear {
0%{transform:scale(0) rotate(-180deg);opacity:0}
100%{transform:scale(1) rotate(0deg);opacity:1}
}
.checkers-piece{animation:pieceAppear .4s cubic-bezier(0.4,0,0.2,1)}
.hike-game-card{background:linear-gradient(135deg,#a8e063 0%,#56ab2f 100%);color:white}
.hike-game-card h3{color:white!important;text-shadow:0 1px 2px rgba(0,0,0,0.2)}
.hike-game-card p{color:rgba(255,255,255,0.9)!important}
.hike-game-card .game-start-btn{background:white;color:#56ab2f}
.invite-hint{font-size:.9rem;text-align:center;padding-bottom:15px}
.invite-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:10001;display:flex;justify-content:center;align-items:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility .3s ease,backdrop-filter .3s ease;backdrop-filter:blur(0px)}
.invite-modal.active{opacity:1;visibility:visible;pointer-events:auto;backdrop-filter:blur(5px)}
.invite-modal-content{background:#fff;width:90%;max-width:400px;border-radius:20px;padding:20px;box-shadow:0 10px 40px rgba(0,0,0,0.3);display:flex;flex-direction:column;max-height:80vh;transform:scale(0.9) translateY(10px);opacity:0;transition:transform .4s cubic-bezier(0.34,1.56,0.64,1),opacity .3s ease}
.invite-modal.active .invite-modal-content{transform:scale(1) translateY(0);opacity:1}
.invite-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;border-bottom:1px solid #eee;padding-bottom:10px}
.invite-header h3{margin:0;font-size:1.2rem;color:#333}
.close-modal-btn{background:none;border:none;font-size:36px;cursor:pointer;color:#999;transition:.2s}
.close-modal-btn:hover{opacity:.75}
.contacts-list{overflow-y:auto;flex:1;display:flex;flex-direction:column;scrollbar-width:thin;gap:8px}
.contact-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;background:#f8f9fa;cursor:pointer;transition:.2s;border:1px solid transparent}
.contact-item:hover{background:#eef2ff;border-color:#c2c3ff}
.contact-avatar{width:40px;height:40px;border-radius:50%;background:#ddd;object-fit:cover}
.contact-info{flex:1;text-align:left}
.contact-name{font-weight:600;font-size:14px;color:#333}
.contact-action{font-size:14px;color:#8d66ea;font-weight:700}
.invite-trigger-btn{background:linear-gradient(135deg,#a072bb,#5f26ae)!important;box-shadow:0 4px 15px rgb(50 0 176 / 30%)!important;margin-top:10px;width:100%}
.invite-trigger-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgb(0 4 176 / 40%)!important}
.dark-theme .invite-modal-content{background:#2d3436;color:#eceff1}
.dark-theme .invite-header{border-color:#444}
.dark-theme .invite-header h3{color:#eceff1}
.dark-theme .contact-item{background:#37474f}
.dark-theme .contact-item:hover{background:#455a64;border-color:#9fa8da}
.dark-theme .contact-name{color:#eceff1}
.dark-theme .contact-action{color:#80cbc4}
.game-over-modal{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.8);z-index:1000;display:flex;flex-direction:column;justify-content:center;align-items:center;backdrop-filter:blur(5px);animation:fadeIn .5s ease}
.game-over-content{background:white;padding:30px 40px;border-radius:25px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,0.5);max-width:300px;width:90%;transform:scale(0.8);animation:popIn .5s cubic-bezier(0.68,-0.55,0.265,1.55) forwards}
.game-over-title{font-size:2rem;margin:0 0 10px;font-weight:800}
.game-over-text{font-size:1.2rem;color:#555;margin-bottom:25px}
.game-over-victory .game-over-title{background:linear-gradient(135deg,#00b894,#00cec9);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.game-over-defeat .game-over-title{background:linear-gradient(135deg,#ff7675,#d63031);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.game-over-buttons{display:flex;flex-direction:column;gap:10px}
.game-timer{font-size:1.2em;font-weight:700;margin:10px auto;padding:5px 15px;border-radius:15px;width:fit-content;display:none;transition:color .3s ease}
.game-timer.warning{color:#f44336;animation:pulse 1s infinite}
.dark-theme .game-over-content{background:#2d3436;color:#dfe6e9}
.dark-theme .game-over-text{color:#b2bec3}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}
.guest-blurred{filter:blur(5px);pointer-events:none;user-select:none;opacity:.7}
.guest-overlay-container{position:fixed;bottom:50px;left:50%;transform:translateX(-50%);z-index:2000;width:90%;max-width:400px;animation:slideUp .5s ease-out}
.guest-auth-banner{background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);border-radius:12px;padding:20px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,0.2);border:1px solid rgba(0,0,0,0.1)}
.dark-theme .guest-auth-banner{background:rgba(45,45,45,0.95);border-color:rgba(255,255,255,0.1)}
.guest-auth-banner h3{margin:0 0 10px;color:#333;font-size:18px}
.dark-theme .guest-auth-banner h3{color:#fff}
.guest-auth-banner p{margin:0 0 15px;color:#666;font-size:14px}
.dark-theme .guest-auth-banner p{color:#ccc}
.guest-login-btn{display:inline-block;background:#633ea4;color:white;padding:10px 25px;border-radius:25px;text-decoration:none;font-weight:700;transition:.2s}
.guest-login-btn:hover{background:#503285;transform:translateY(-2px)}
@keyframes slideUp {
from{transform:translate(-50%,100%);opacity:0}
to{transform:translate(-50%,0);opacity:1}
}