*{margin:0;padding:0;box-sizing:border-box}body{font-family:Arial,sans-serif;background:linear-gradient(135deg,#0f4c75,#3282b8,#bbe1fa);min-height:100vh;color:#fff}.game-container{max-width:1200px;margin:0 auto;padding:20px}header{text-align:center;margin-bottom:30px;display:flex;justify-content:space-between;align-items:center;background:#0000004d;padding:20px;border-radius:15px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}h1{font-size:2.5em;color:gold;text-shadow:2px 2px 4px rgba(0,0,0,.5)}.header-right{display:flex;flex-direction:column;gap:15px;align-items:flex-end}.discord-promo-header{font-size:.9em;color:gold;text-align:center;display:flex;align-items:center;gap:8px}.player-info{display:flex;flex-direction:column;gap:8px;align-items:flex-end}.chip-display{font-size:1.5em;font-weight:700;color:gold;display:flex;align-items:center;gap:10px}.player-id-display{font-size:.9em;color:#aaa;cursor:help;transition:color .3s ease}.player-id-display:hover{color:#ddd}.bonus-code{display:flex;gap:10px;align-items:center}#bonus-code{padding:8px 12px;border:2px solid #ffd700;border-radius:6px;background:#ffffff1a;color:#fff;font-size:.9em;width:150px}#bonus-code::placeholder{color:#ffffffb3}#redeem-code{padding:8px 16px;background:linear-gradient(45deg,#28a745,#20c997);color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:700;font-size:.9em;transition:all .3s ease}#redeem-code:hover{background:linear-gradient(45deg,#20c997,#28a745);transform:translateY(-1px)}.chip-icon{font-size:2em}.game-area{display:grid;grid-template-columns:280px 400px 280px;grid-template-rows:minmax(300px,auto);gap:30px;margin-bottom:30px;align-items:start;justify-content:center}.dealer-section,.player-section{background:#0006;padding:25px;border-radius:15px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid rgba(255,255,255,.1);min-height:250px;display:flex;flex-direction:column;width:100%;max-width:280px;margin:0 auto}.controls-section{background:#00000080;padding:25px;border-radius:15px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:20px}h2{text-align:center;margin-bottom:15px;color:gold;font-size:1.5em;min-height:40px;display:flex;align-items:center;justify-content:center}.hand-info{text-align:center;margin-bottom:20px;font-size:1.2em;min-height:30px;display:flex;justify-content:center;align-items:center;gap:10px}.hand-value{font-weight:700;color:gold;margin-right:10px}.hand-status{color:#ff6b6b;font-weight:700}.cards{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;min-height:140px;align-items:flex-start;flex:1;padding:10px 0;position:relative;width:100%;max-width:180px;margin:0 auto}.cards:empty:before{content:"Cards will appear here";color:#ffffff80;font-style:italic;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cards:has(.card:nth-child(5)){min-height:250px}.cards:has(.card:nth-child(7)){min-height:360px}.card{width:80px;height:112px;background:#fff;border-radius:8px;display:flex;flex-direction:column;justify-content:space-between;padding:8px;font-size:14px;font-weight:700;color:#000;box-shadow:0 4px 8px #0000004d;transform:translateY(0);transition:transform .3s ease;position:relative;flex-shrink:0}.card:hover{transform:translateY(-5px)}.card.red{color:#dc143c}.card.hidden{background:#4a4a4a;color:#fff}.card .top{text-align:left}.card .bottom{text-align:right;transform:rotate(180deg)}.card .center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:24px}.betting-area{text-align:center}.betting-area h3{margin-bottom:15px;color:gold}.bet-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}.bet-btn{padding:12px;background:linear-gradient(45deg,gold,#ffed4e);color:#333;border:none;border-radius:8px;cursor:pointer;font-weight:700;font-size:1em;transition:all .3s ease}.bet-btn:hover{background:linear-gradient(45deg,#ffed4e,gold);transform:translateY(-2px);box-shadow:0 4px 12px #ffd70066}.bet-input{display:flex;gap:10px;margin-bottom:15px}#clear-bet{padding:10px 20px;background:linear-gradient(45deg,#dc3545,#e74c3c);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:700}#clear-bet:hover{background:linear-gradient(45deg,#e74c3c,#dc3545)}.current-bet{font-size:1.2em;font-weight:700;color:gold;margin-top:10px}.game-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action-btn{padding:12px;border:none;border-radius:8px;cursor:pointer;font-weight:700;font-size:1em;transition:all .3s ease;background:linear-gradient(45deg,#6c757d,#adb5bd);color:#fff}.action-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.action-btn:disabled{opacity:.5;cursor:not-allowed}.action-btn.primary{background:linear-gradient(45deg,#28a745,#20c997)}.action-btn.primary:hover{background:linear-gradient(45deg,#20c997,#28a745)}.game-info{text-align:center}.message{font-size:1.1em;font-weight:700;color:gold;background:#0000004d;padding:15px;border-radius:8px;border:2px solid rgba(255,215,0,.3)}.split-hand{margin-top:30px;padding-top:20px;border-top:2px solid rgba(255,215,0,.3)}.split-hand h3{text-align:center;color:gold;margin-bottom:15px}.modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background:linear-gradient(135deg,#0f4c75,#3282b8);padding:30px;border-radius:15px;text-align:center;border:2px solid rgba(255,215,0,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.modal-content h3{color:gold;margin-bottom:15px;font-size:1.5em}.modal-content p{margin-bottom:20px;font-size:1.1em}.modal-buttons{display:flex;gap:15px;justify-content:center}@media (max-width: 1024px){.game-area{grid-template-columns:1fr;grid-template-rows:minmax(250px,auto) auto minmax(250px,auto);justify-content:center}.controls-section{order:-1;max-width:400px;margin:0 auto}.dealer-section,.player-section{min-height:250px;max-width:300px;margin:0 auto}}@media (max-width: 768px){header{flex-direction:column;gap:15px}.header-right{align-items:center}.discord-promo-header{font-size:.8em;margin-top:10px}.discord-link-button{font-size:.75rem;padding:.4rem .8rem}.bonus-code{flex-direction:column;gap:8px}#bonus-code{width:200px}.bet-buttons,.game-actions{grid-template-columns:1fr}.cards{gap:5px;max-width:170px}.card{width:60px;height:84px;font-size:12px}.discord-promo{margin-top:15px;padding:12px}.discord-promo p{font-size:1em}}.card-deal{animation:dealCard .5s ease-out}@keyframes dealCard{0%{transform:translate(-100px) translateY(-50px) rotateY(180deg);opacity:0}to{transform:translate(0) translateY(0) rotateY(0);opacity:1}}.winning{animation:winPulse 1s ease-in-out}@keyframes winPulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.losing{animation:shakeLose .5s ease-in-out}@keyframes shakeLose{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.discord-link-button{background:linear-gradient(135deg,#5865f2,#7289da);color:gold;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:700;text-decoration:none;display:inline-block;transition:all .3s ease;border:1px solid rgba(255,215,0,.3);white-space:nowrap;position:relative}.discord-link-button:hover{background:linear-gradient(135deg,#7289da,#5865f2);color:#ffed4e;text-shadow:0 0 8px rgba(255,215,0,.6);transform:translateY(-2px);box-shadow:0 8px 25px #5865f266;border-color:#ffd70099}.discord-link-button:hover:after{content:"Get bonus codes & chat with players!";position:absolute;bottom:-30px;left:50%;transform:translate(-50%);background:#000000e6;color:#fff;padding:6px 12px;border-radius:4px;font-size:.75rem;white-space:nowrap;z-index:1000;pointer-events:none}.discord-link-button:active{transform:translateY(0);box-shadow:0 4px 15px #5865f24d}.discord-link-button:disabled{background:#6c757d;cursor:not-allowed;transform:none;box-shadow:none;color:#ffffff80}: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:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vanilla:hover{filter:drop-shadow(0 0 2em #f7df1eaa)}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.message-section,.button-section{margin-top:2rem;display:flex;flex-direction:column;gap:1rem;align-items:center}#timingBtn{background-color:#ff6b35;color:#fff;border:none;padding:.8em 1.5em;font-size:1em;border-radius:8px;cursor:pointer;transition:background-color .25s;font-weight:600}#timingBtn:hover{background-color:#e55a2b}#timingBtn:disabled{background-color:#6c757d;cursor:not-allowed;opacity:.6}#timingBtn:disabled:hover{background-color:#6c757d}#messageInput{padding:.8em 1.2em;font-size:1em;border-radius:8px;border:1px solid #ccc;background-color:#1a1a1a;color:#ffffffde;width:300px;max-width:90%}#messageInput:focus{outline:none;border-color:#646cff}#sendMessageBtn{background-color:#5865f2;color:#fff;border:none;padding:.8em 1.5em;font-size:1em;border-radius:8px;cursor:pointer;transition:background-color .25s}#sendMessageBtn:hover{background-color:#4752c4}#sendMessageBtn:disabled{background-color:#6c757d;cursor:not-allowed;opacity:.6}#sendMessageBtn:disabled:hover{background-color:#6c757d}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}#messageInput{background-color:#fff;color:#213547;border-color:#ccc}}.notification{position:fixed;top:20px;right:20px;padding:12px 20px;border-radius:8px;color:#fff;font-weight:700;z-index:1000;max-width:300px;word-wrap:break-word;box-shadow:0 4px 12px #00000026;animation:slideIn .3s ease-out}.notification.info{background-color:#007bff}.notification.warning{background-color:#ffc107;color:#000}.notification.error{background-color:#dc3545}.notification.success{background-color:#28a745}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideOut{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}.link-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:600;text-decoration:none;display:inline-block;transition:all .3s ease;margin:.5rem 0}.link-button:hover{transform:translateY(-2px);box-shadow:0 8px 25px #667eea66}.link-button:active{transform:translateY(0);box-shadow:0 4px 15px #667eea4d}.link-button:disabled{background:#6c757d;cursor:not-allowed;transform:none;box-shadow:none}.database-section{margin-top:2rem;display:flex;flex-direction:column;gap:1rem;align-items:center}#databaseBtn{background:linear-gradient(135deg,#28a745,#20c997);color:#fff;border:none;padding:.8em 1.8em;font-size:1em;border-radius:8px;cursor:pointer;transition:all .25s ease;font-weight:600;box-shadow:0 4px 15px #28a7454d}#databaseBtn:hover{background:linear-gradient(135deg,#218838,#1ba085);transform:translateY(-2px);box-shadow:0 8px 25px #28a74566}#databaseBtn:active{transform:translateY(0);box-shadow:0 4px 15px #28a7454d}#databaseBtn:disabled{background:#6c757d;cursor:not-allowed;transform:none;box-shadow:none}.other-players{display:flex;flex-wrap:wrap;gap:1rem;margin:1rem 0;padding:1rem;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1)}.other-player{background:#ffffff14;border-radius:8px;padding:.8rem;min-width:200px;border:1px solid rgba(255,255,255,.1)}.other-player.at-table{border-color:#4caf50;background:#4caf501a}.other-player.not-at-table{border-color:orange;background:#ffa5001a}.no-other-players{text-align:center;color:#999;font-style:italic;padding:1rem}.other-player-status{font-size:.8rem;font-weight:600;margin-bottom:.2rem}.at-table .other-player-status{color:#4caf50}.not-at-table .other-player-status{color:orange}.other-player-waiting{text-align:center;color:#999;font-style:italic;padding:.5rem 0}.other-player-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.other-player-header h3{margin:0;font-size:1rem;color:#fff}.other-player-chips{font-size:.9rem;color:gold;font-weight:600}.other-player-hand{margin-top:.5rem}.other-player-hand .hand-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.9rem}.other-player-hand .hand-value{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:.2rem .5rem;border-radius:4px;font-weight:600}.other-player-hand .bet-amount{color:#90ee90;font-weight:600}.other-player-hand .cards{display:flex;gap:.3rem;flex-wrap:wrap}.other-player-hand .card{width:40px;height:60px;background:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.8rem;color:#000;box-shadow:0 2px 8px #0000004d}.player-count{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;padding:.5rem 1rem;border-radius:20px;font-weight:600;display:inline-block;margin:.5rem;box-shadow:0 2px 8px #4caf504d}.table-status{background:linear-gradient(135deg,#ff8c00,tomato);color:#fff;padding:1rem;border-radius:8px;text-align:center;margin:1rem 0;box-shadow:0 4px 15px #ff8c004d}.countdown-display{font-size:1.2rem;font-weight:600}#countdown-timer{color:#ff0;font-size:1.5rem;font-weight:700;text-shadow:0 0 10px rgba(255,255,0,.5);animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.turn-indicator{padding:1rem;border-radius:8px;text-align:center;margin:1rem 0;font-weight:600;font-size:1.1rem;box-shadow:0 4px 15px #0003}.turn-indicator.your-turn{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;animation:pulse 2s infinite}.turn-indicator.waiting-turn{background:linear-gradient(135deg,orange,#ff8c00);color:#fff}.your-turn{color:#4caf50;font-weight:700}.waiting-turn{color:orange;font-weight:600}button:disabled{opacity:.5;cursor:not-allowed;background:#6c757d!important}.players-in-channel{background:linear-gradient(135deg,#2c3e50,#34495e);border-radius:12px;padding:1rem;margin:1rem auto;max-width:1200px;border:2px solid rgba(52,152,219,.3);box-shadow:0 4px 20px #3498db33}.channel-players-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.8rem;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:.5rem}.channel-players-header h3{margin:0;color:#3498db;font-size:1.2rem}#channel-player-count{background:#3498db33;color:#3498db;padding:.3rem .8rem;border-radius:15px;font-weight:600;font-size:.9rem}.channel-players-list{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}.channel-player{background:#ffffff1a;border-radius:8px;padding:.6rem 1rem;display:flex;flex-direction:column;align-items:center;min-width:120px;border:2px solid transparent;transition:all .3s ease}.channel-player.current-player{border-color:#27ae60;background:#27ae6033}.channel-player.other-player{border-color:#3498db;background:#3498db33}.channel-player.at-table{border-color:#f39c12;background:#f39c1233}.channel-player .player-name{font-weight:600;color:#fff;margin-bottom:.2rem;text-align:center}.channel-player .player-status{font-size:.8rem;opacity:.9;text-align:center}.channel-player.current-player .player-status{color:#27ae60}.channel-player.other-player .player-status{color:#3498db}.channel-player.at-table .player-status{color:#f39c12}.table-status{text-align:center;margin:20px 0;padding:15px;background:linear-gradient(135deg,#ff6b35,#f7931e);border-radius:10px;border:2px solid #ff8c42}.countdown-display{font-size:1.2em;font-weight:700;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.3)}#countdown-timer{font-size:1.5em;color:#fff700;text-shadow:0 0 10px rgba(255,247,0,.5);animation:pulse 1s ease-in-out infinite alternate}@keyframes pulse{0%{transform:scale(1)}to{transform:scale(1.1)}}#join-table-btn{background:linear-gradient(135deg,#28a745,#20c997);font-size:1.2em;padding:15px 30px;margin:10px}#leave-table-btn{background:linear-gradient(135deg,#dc3545,#c82333)}#leave-table-btn:hover{background:linear-gradient(135deg,#c82333,#bd2130)}#ready-btn{background:linear-gradient(135deg,#17a2b8,#138496);color:#fff;font-size:1.1em;padding:12px 25px;margin:5px;animation:readyPulse 2s infinite}#ready-btn:hover{background:linear-gradient(135deg,#138496,#117a8b)}#unready-btn{background:linear-gradient(135deg,#ffc107,#e0a800);color:#212529;font-size:1.1em;padding:12px 25px;margin:5px}#unready-btn:hover{background:linear-gradient(135deg,#e0a800,#d39e00)}@keyframes readyPulse{0%,to{transform:scale(1);box-shadow:0 0 #17a2b8b3}50%{transform:scale(1.05);box-shadow:0 0 0 10px #17a2b800}}.ready-status-display{background:#fffffff2;border-radius:15px;padding:20px;margin:15px 0;box-shadow:0 8px 32px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.ready-header{font-size:1.3em;font-weight:700;margin-bottom:15px;text-align:center;color:#2c3e50}.ready-players-list{display:flex;flex-direction:column;gap:10px;margin-bottom:15px}.ready-player-item{display:flex;justify-content:space-between;align-items:center;padding:10px 15px;background:#fffc;border-radius:10px;border:2px solid transparent;transition:all .3s ease}.ready-player-item.ready{border-color:#28a745;background:#28a7451a}.ready-player-item.not-ready{border-color:#ffc107;background:#ffc1071a}.ready-player-name{font-weight:700;font-size:1.1em}.ready-player-status{display:flex;align-items:center;gap:8px;font-weight:700}.ready-player-status.ready{color:#28a745}.ready-player-status.not-ready{color:#ffc107}.ready-icon{font-size:1.2em}.ready-message{text-align:center;font-size:1.1em;font-weight:700;padding:10px;border-radius:8px}.ready-message.waiting{background:#ffc10733;color:#856404}.ready-message.all-ready{background:#28a74533;color:#155724;animation:allReadyPulse 1.5s infinite}@keyframes allReadyPulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}.multiplayer-players-section{background:#fffffff2;border-radius:15px;padding:20px;margin:20px 0;box-shadow:0 8px 32px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.multiplayer-players-section h3{text-align:center;margin-bottom:20px;color:#2c3e50;font-size:1.4em}.players-at-table{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px;max-width:100%}.player-hand-display{background:#ffffffe6;border-radius:12px;padding:15px;border:2px solid transparent;transition:all .3s ease;position:relative}.player-hand-display.current-player{border-color:#007bff;background:#007bff1a}.player-hand-display.active-turn{border-color:#28a745;background:#28a7451a;box-shadow:0 0 15px #28a7454d}.player-hand-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.player-name-tag{font-weight:700;font-size:1.1em;color:#2c3e50}.player-name-tag.current{color:#007bff}.player-name-tag.active-turn{color:#28a745}.player-hand-info{display:flex;gap:15px;align-items:center;font-size:.9em}.player-hand-value{background:#f8f9fa;padding:4px 8px;border-radius:5px;font-weight:700}.player-bet-amount{background:#007bff;color:#fff;padding:4px 8px;border-radius:5px;font-size:.8em}.player-status-badge{padding:4px 8px;border-radius:5px;font-size:.8em;font-weight:700}.player-status-badge.ready{background:#28a745;color:#fff}.player-status-badge.not-ready{background:#ffc107;color:#212529}.player-status-badge.playing{background:#17a2b8;color:#fff}.player-status-badge.finished{background:#6c757d;color:#fff}.player-cards{margin-top:10px;display:flex;gap:5px;flex-wrap:wrap}.spectator-message{text-align:center;padding:20px;background:#ffc1071a;border-radius:10px;margin:20px 0;border:2px solid #ffc107}.spectator-message h3{color:#856404;margin-bottom:10px}.spectator-message p{color:#856404;margin:0}
