*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:linear-gradient(135deg,#1a1a2e,#16213e);min-height:100vh;color:#fff}.container{max-width:500px;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;align-items:center;min-height:100vh}h1{font-size:2.5rem;margin-bottom:2rem;text-align:center;background:linear-gradient(135deg,gold,#ff6b6b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.mode-selection,.form{display:flex;flex-direction:column;gap:1rem;width:100%;max-width:350px}input{padding:.75rem 1rem;border:2px solid #3a3a5c;border-radius:8px;background:#1a1a2e;color:#fff;font-size:1rem}input:focus{outline:none;border-color:gold}.name-input,.code-input{text-align:center}.code-input{font-size:1.5rem;letter-spacing:.25rem;text-transform:uppercase}.settings-group{display:flex;flex-direction:column;gap:.75rem}.settings-group label{display:flex;justify-content:space-between;align-items:center;gap:1rem}.settings-group input{width:100px;text-align:right}.button-group{display:flex;gap:.75rem}button{padding:.875rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .1s,opacity .2s}button:hover:not(:disabled){transform:translateY(-2px)}button:disabled{opacity:.5;cursor:not-allowed}.primary-btn{background:linear-gradient(135deg,gold,#ff6b6b);color:#1a1a2e;flex:1}.secondary-btn{background:#3a3a5c;color:#fff;flex:1}.back-btn{background:transparent;border:2px solid #3a3a5c;color:#9090a0}.leave-btn{background:transparent;border:2px solid #ff6b6b;color:#ff6b6b}.copy-btn{background:#3a3a5c;color:#fff;padding:.5rem 1rem;font-size:.875rem}.error{background:#ff6b6b1a;border:1px solid #ff6b6b;color:#ff6b6b;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;text-align:center}.room-code-display{display:flex;align-items:center;gap:1rem;background:#1a1a2e;padding:1rem 1.5rem;border-radius:12px;border:2px solid #3a3a5c}.room-code-display strong{font-size:1.5rem;letter-spacing:.2rem;color:gold}.lobby-container{min-height:100vh;display:flex;flex-direction:column;padding:1rem}.lobby-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem}.lobby-header h1{margin:0;font-size:1.75rem}.lobby-content{display:flex;gap:1.5rem;flex:1}.lobby-main{flex:1;display:flex;flex-direction:column;gap:1.5rem}.lobby-sidebar{width:300px}.seats-section,.settings-section{background:#ffffff0d;border-radius:12px;padding:1.5rem}.seats-section h2,.settings-section h2{margin-bottom:1rem;font-size:1.25rem}.seats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}.seat-card{background:#1a1a2e;border-radius:8px;padding:1rem;text-align:center}.seat-card.occupied{border:2px solid #ffd700}.seat-card.empty{border:2px dashed #3a3a5c;color:#6c6c8a}.seat-name{display:block;font-weight:600;margin-bottom:.25rem}.seat-chips{color:gold;font-size:.875rem}.remove-ai-btn{margin-top:.5rem;padding:.25rem .5rem;font-size:.75rem;background:#ff6b6b;color:#fff}.add-ai-section{margin-top:1.5rem}.add-ai-section h3{margin-bottom:.75rem}.ai-buttons{display:flex;flex-wrap:wrap;gap:.5rem}.ai-btn{padding:.5rem 1rem;font-size:.875rem;background:#3a3a5c;color:#fff;display:flex;flex-direction:column;align-items:center;gap:.2rem;min-width:100px}.ai-btn .ai-name{font-weight:600}.ai-btn .ai-diff{font-size:.7rem;opacity:.8}.ai-section-label{font-size:.75rem;color:#9090a0;margin:.75rem 0 .25rem;text-transform:uppercase;letter-spacing:.5px}.ai-section-label:first-of-type{margin-top:0}.ai-btn.ai-veasy{background:#2ecc71}.ai-btn.ai-easy{background:#27ae60}.ai-btn.ai-medium{background:#3498db}.ai-btn.ai-hard{background:#e67e22}.ai-btn.ai-vhard{background:#e74c3c}.ai-btn.ai-expert{background:#8e44ad}.ai-btn.ai-chaotic{background:linear-gradient(135deg,#e74c3c,#f39c12)}.ai-btn-random{background:linear-gradient(135deg,#9b59b6,#3498db,#e74c3c,#f39c12);background-size:300% 300%;animation:gradient-shift 3s ease infinite;color:#fff}@keyframes gradient-shift{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.betting-mode-toggle{display:flex;flex-direction:column;gap:.5rem;margin:.5rem 0}.toggle-label{font-size:.9rem;color:#9090a0}.toggle-buttons{display:flex;gap:.5rem}.toggle-btn{flex:1;padding:.5rem 1rem;font-size:.875rem;background:#1a1a2e;border:2px solid #3a3a5c;color:#9090a0;border-radius:6px;cursor:pointer;transition:all .2s}.toggle-btn.active{background:linear-gradient(135deg,gold,#ff6b6b);border-color:transparent;color:#1a1a2e;font-weight:600}.toggle-btn:hover:not(.active){border-color:gold;color:#fff}.card-back-selection{margin-top:1rem}.card-back-label{display:block;font-size:.9rem;color:#9090a0;margin-bottom:.75rem}.card-back-options{display:flex;gap:.75rem;flex-wrap:wrap}.card-back-option{display:flex;flex-direction:column;align-items:center;gap:.25rem;cursor:pointer;padding:.5rem;border-radius:8px;border:2px solid transparent;transition:all .2s}.card-back-option:hover{border-color:#3a3a5c}.card-back-option.selected{border-color:gold;background:#ffd7001a}.card-back-option img{width:40px;height:56px;object-fit:contain;border-radius:4px}.card-back-option span{font-size:.7rem;color:#9090a0}.card-back-option.selected span{color:gold}.random-card-back{width:40px;height:56px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;color:gold;background:linear-gradient(135deg,#3a3a5c,#1a1a2e);border-radius:4px;border:1px solid #3a3a5c}.settings-form{display:flex;flex-direction:column;gap:.75rem}.settings-form label{display:flex;justify-content:space-between;align-items:center}.settings-form input{width:100px;text-align:right}.settings-display p{margin-bottom:.5rem}.lobby-actions{margin-top:1.5rem;display:flex;flex-direction:column;align-items:center;gap:1rem}.start-btn{padding:1rem 3rem;font-size:1.25rem}.waiting-text{color:#9090a0}.chat-panel{background:#ffffff0d;border-radius:12px;padding:1rem;height:100%;display:flex;flex-direction:column}.chat-panel h3{margin-bottom:.75rem}.chat-messages{flex:1;overflow-y:auto;margin-bottom:.75rem;min-height:0}.chat-message{margin-bottom:.5rem;font-size:.875rem}.chat-time{color:#6c6c8a;margin-right:.5rem}.chat-name{color:gold;margin-right:.5rem}.chat-input-form{display:flex;gap:.5rem;flex-shrink:0}.chat-input-form input{flex:1;min-width:0;padding:.5rem;font-size:.875rem}.chat-input-form button{padding:.5rem .75rem;background:gold;color:#1a1a2e;flex-shrink:0}.emote-buttons{display:flex;gap:.5rem;justify-content:center;margin-bottom:.5rem;flex-shrink:0}.emote-btn{padding:.4rem .6rem;font-size:1.25rem;background:#ffffff1a;border:1px solid #3a3a5c;border-radius:8px;cursor:pointer;transition:transform .1s,background .2s}.emote-btn:hover{background:#fff3;transform:scale(1.1)}.emote-btn:active{transform:scale(.95)}.chat-message.system-message{background:#ffd7001a;padding:.25rem .5rem;border-radius:4px;border-left:3px solid #ffd700;margin:.25rem 0}.chat-message.system-message .chat-text.system{color:#b0b0b0}.highlight-number{color:gold;font-weight:700}.game-container{min-height:100vh;display:flex;flex-direction:column;position:relative}.game-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#00000080;flex-wrap:wrap;gap:.5rem}.room-info{display:flex;gap:1rem;flex-wrap:wrap;font-size:.875rem}.room-info span{color:#9090a0}.room-info strong{color:gold}.leave-btn.small{padding:.5rem 1rem;font-size:.875rem}.spectate-btn{padding:.5rem 1rem;font-size:.875rem;background:#9c27b0;color:#fff;border:none;border-radius:6px;cursor:pointer;transition:background .2s}.spectate-btn:hover:not(:disabled){background:#7b1fa2}.spectate-btn:disabled{background:#666;cursor:not-allowed;opacity:.6}.join-btn{padding:.5rem 1rem;font-size:.875rem;background:#4caf50;color:#fff;border:none;border-radius:6px;cursor:pointer;transition:background .2s}.join-btn:hover{background:#388e3c}.header-buttons{display:flex;gap:.5rem;align-items:center}.mute-btn{padding:.5rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#fff;display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s}.mute-btn:hover{background:#fff3;border-color:#ffffff4d}.mute-btn svg{display:block}.chat-toggle-btn,.chat-close-btn{display:none}.game-layout{display:flex;flex:1;min-height:0}.table-section{flex:1;display:flex;align-items:center;justify-content:center;padding:.5rem;position:relative}.chat-section{width:280px;padding:.5rem;display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 200px);overflow:hidden}.chat-section .chat-panel{flex:1;min-height:0;display:flex;flex-direction:column}.player-section{background:#000000b3;border-top:2px solid #3a3a5c;padding:1rem;display:flex;align-items:center;justify-content:center;gap:2rem;flex-wrap:wrap}.my-cards-area{display:flex;flex-direction:column;align-items:center;gap:.5rem}.my-hole-cards{display:flex;gap:.75rem}.my-info{display:flex;flex-direction:column;align-items:center;gap:.25rem}.my-name{font-weight:600;color:#fff}.my-chips{color:gold;font-size:1.125rem;font-weight:700}.waiting-status{color:#9090a0;font-size:1rem}.folded-text{color:#ff6b6b}.spectator-bar{text-align:center;padding:.75rem;background:#00000080;color:#9090a0}.winner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.winner-content{text-align:center}.winner-announcement{margin-bottom:1rem}.winner-announcement.is-me .winner-name{color:#4caf50}.winner-name{font-size:3rem;font-weight:700;color:gold;text-shadow:0 0 20px rgba(255,215,0,.5);margin-bottom:.5rem}.winner-amount{font-size:2.5rem;font-weight:700;color:#4caf50;margin-bottom:.5rem}.winner-hand{font-size:1.5rem;color:#fff;opacity:.8}.game-main{display:flex;flex:1;padding:1rem;gap:1rem}.table-area{flex:1;position:relative}.game-sidebar{width:280px;display:flex;flex-direction:column;gap:1rem}.poker-table{position:relative;width:100%;height:500px;max-width:900px;margin:0 auto}.table-felt{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:70%;height:60%;background:linear-gradient(135deg,#1b5e20,#2e7d32);border-radius:50%;border:8px solid #4a2c2a;box-shadow:0 0 30px #00000080,inset 0 0 50px #0000004d;display:flex;flex-direction:column;justify-content:center;align-items:center}.community-cards{display:flex;gap:.5rem;margin-top:.75rem}.card-slot{width:60px;height:84px}.card-placeholder{width:100%;height:100%;border:2px dashed rgba(255,255,255,.2);border-radius:6px}.card-container{width:60px;height:84px;perspective:1000px}.card-container.size-large{width:80px;height:112px}.card-container.size-mini{width:35px;height:49px}.card-flipper{position:relative;width:100%;height:100%;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transition:transform .5s ease-in-out}.card-container.animated .card-flipper{transition:transform .5s ease-in-out}.card-flipper.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:6px;overflow:hidden;box-shadow:0 2px 8px #0000004d}.card-face img{width:100%;height:100%;object-fit:cover}.card-face.card-back{transform:rotateY(0)}.card-face.card-front{transform:rotateY(180deg)}.card{width:60px;height:84px;border-radius:6px;overflow:hidden;box-shadow:0 2px 8px #0000004d}.card img{width:100%;height:100%;object-fit:cover}.card.size-large{width:80px;height:112px}.card.size-mini{width:35px;height:49px}.card.card-back{width:60px;height:84px}.card.card-back.size-large{width:80px;height:112px}.card.card-back.size-mini{width:35px;height:49px}.pot-display{background:#0006;padding:.5rem 1.25rem;border-radius:20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:80px}.pot-label{display:block;font-size:.75rem;color:#aaa}.pot-amount{font-size:1.5rem;font-weight:700;color:gold}.pot-amount-text{display:none}.chip-stack{display:flex;flex-direction:column;align-items:center;gap:2px}.chips-display{display:flex;align-items:center;justify-content:center}.chip-image{height:28px;width:auto;filter:drop-shadow(1px 1px 2px rgba(0,0,0,.5))}.chip-small .chip-image{height:20px}.chip-large .chip-image{height:36px}.chip-amount{font-size:.75rem;font-weight:700;color:gold;text-shadow:1px 1px 2px rgba(0,0,0,.8)}.chip-small .chip-amount{font-size:.625rem}.chip-large .chip-amount{font-size:1rem}.phase-indicator{font-size:.875rem;color:#ffffffb3;text-transform:uppercase;letter-spacing:.15rem;font-weight:600;margin-bottom:.5rem}.seat{position:absolute;transform:translate(-50%,-50%);text-align:center;padding:.5rem;border-radius:8px;width:90px;max-width:90px}.empty-seat{background:#ffffff1a;border:2px dashed rgba(255,255,255,.2)}.seat-number{color:#ffffff4d}.seat.occupied{background:#000000b3;border:2px solid #3a3a5c}.seat.active-turn{border-color:gold;box-shadow:0 0 15px #ffd70080}.seat.is-me{border-color:#4caf50}.seat.folded{opacity:.5}.seat-info{margin-bottom:.25rem}.player-name{display:block;font-weight:600;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.ai-badge,.me-badge{font-size:.625rem;padding:.1rem .3rem;border-radius:4px;margin-right:.25rem}.ai-badge{background:#9c27b0}.me-badge{background:#4caf50}.player-chips{font-size:.75rem;color:gold}.position-badges{display:flex;justify-content:center;gap:.25rem;margin-bottom:.25rem}.dealer-button{background:#fff;color:#1a1a2e;font-size:.625rem;font-weight:700;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center}.dealer-button-img{height:22px;width:auto;filter:drop-shadow(1px 1px 2px rgba(0,0,0,.5))}.blind-badge{font-size:.5rem;padding:.1rem .25rem;border-radius:3px}.blind-badge.sb{background:#ff9800;color:#1a1a2e}.blind-badge.bb{background:#f44336;color:#fff}.seat-cards{display:flex;justify-content:center;gap:2px;margin-bottom:.25rem}.seat-bet{margin-top:.25rem}.status-badge{font-size:.625rem;padding:.1rem .4rem;border-radius:4px;margin-top:.25rem}.status-badge.folded{background:#666}.status-badge.all-in{background:#f44336}.action-popup{position:absolute;top:-35px;left:50%;transform:translate(-50%);padding:.4rem .75rem;border-radius:8px;font-weight:700;font-size:.8rem;white-space:nowrap;animation:popIn .2s ease-out,fadeOut .3s ease-in 1.7s forwards;box-shadow:0 2px 10px #0006;z-index:10}@keyframes popIn{0%{transform:translate(-50%) scale(.5);opacity:0}to{transform:translate(-50%) scale(1);opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.showdown-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease}.showdown-waiting{font-size:2rem;color:gold}.showdown-reveal{display:flex;flex-direction:column;align-items:center;gap:1rem;animation:revealSlideIn .4s ease-out}@keyframes revealSlideIn{0%{transform:scale(.8) translateY(30px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}.reveal-player-name{font-size:1.75rem;font-weight:700;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.5)}.reveal-cards{display:flex;gap:1rem;margin:1rem 0}.reveal-cards .card-container.size-large{width:100px;height:140px}.reveal-cards .card-container.size-large .card-face{border-radius:8px}.reveal-hand-name{font-size:1.5rem;color:#4caf50;font-weight:700;animation:fadeIn .3s ease}.reveal-progress{display:flex;gap:.5rem;margin-top:1rem}.progress-dot{width:10px;height:10px;border-radius:50%;background:#ffffff4d;transition:background .3s ease}.progress-dot.active{background:gold}.winner-reveal{display:flex;flex-direction:column;align-items:center;gap:1rem;animation:winnerPop .5s ease-out}@keyframes winnerPop{0%{transform:scale(.5);opacity:0}50%{transform:scale(1.1)}to{transform:scale(1);opacity:1}}.showdown-winner .winner-name{font-size:3.5rem}.showdown-winner .winner-amount{font-size:2.5rem}.showdown-winner .winner-hand{font-size:1.5rem}.showdown-community{text-align:center;margin-bottom:1.5rem}.community-label{font-size:.875rem;color:#9090a0;text-transform:uppercase;letter-spacing:.1rem;margin-bottom:.5rem}.community-cards-row{display:flex;justify-content:center;gap:.5rem}.showdown-card-wrapper{position:relative;border-radius:8px;transition:transform .3s ease,box-shadow .3s ease}.showdown-card-wrapper.winning-card{transform:scale(1.08);z-index:1}.showdown-card-wrapper.winning-card:before{content:"";position:absolute;top:-4px;left:-4px;right:-4px;bottom:-4px;background:linear-gradient(135deg,#4caf50,#66bb6a,#4caf50);border-radius:10px;z-index:-1;animation:winningGlow 1s ease-in-out infinite alternate}@keyframes winningGlow{0%{opacity:.8;filter:blur(2px)}to{opacity:1;filter:blur(4px)}}.showdown-card-wrapper .card-container,.showdown-card-wrapper .card{position:relative;z-index:1}.winner-hole-cards{display:flex;justify-content:center;gap:.75rem;margin:.75rem 0}.reveal-cards .showdown-card-wrapper .card-container.size-large{width:100px;height:140px}.showdown-card-wrapper .card-container.size-medium,.showdown-card-wrapper .card.size-medium,.card-container.size-medium,.card.size-medium{width:70px;height:98px}.reveal-choice-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}.reveal-choice-content{text-align:center;padding:2rem}.reveal-choice-content h2{font-size:2rem;color:#4caf50;margin-bottom:.5rem}.reveal-choice-content p{font-size:1.25rem;color:#fff;margin-bottom:1.5rem}.reveal-choice-cards,.reveal-choice-buttons{display:flex;gap:1rem;justify-content:center;margin-bottom:1.5rem}.reveal-btn{padding:1rem 2.5rem;font-size:1.25rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;transition:transform .1s,opacity .2s}.reveal-btn:hover:not(:disabled){transform:translateY(-2px)}.reveal-btn:disabled{opacity:.5;cursor:not-allowed}.show-btn{background:linear-gradient(135deg,#4caf50,#66bb6a);color:#fff}.muck-btn{background:#666;color:#fff}.reveal-timer-bar{width:200px;height:6px;background:#fff3;border-radius:3px;margin:0 auto;overflow:hidden}.reveal-timer-fill{height:100%;background:linear-gradient(90deg,#ff6b6b,gold);border-radius:3px;transition:width .1s linear}.shot-clock{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.5rem 1rem;background:#0009;border-radius:8px;margin-bottom:.5rem}.shot-clock.my-turn{background:#ffd70033;border:1px solid rgba(255,215,0,.5)}.shot-clock.low .shot-clock-fill{background:linear-gradient(90deg,#ff6b6b,#ff9800)}.shot-clock.critical .shot-clock-fill{background:#f44;animation:pulse-critical .5s ease-in-out infinite}.shot-clock.critical .shot-clock-time{color:#f44;animation:pulse-critical .5s ease-in-out infinite}@keyframes pulse-critical{0%,to{opacity:1}50%{opacity:.6}}.shot-clock-bar{width:150px;height:8px;background:#fff3;border-radius:4px;overflow:hidden}.shot-clock-fill{height:100%;background:linear-gradient(90deg,#4caf50,#8bc34a);border-radius:4px;transition:width .1s linear}.shot-clock-time{font-size:1rem;font-weight:700;color:#fff}.action-popup.action-fold{background:#666;color:#fff}.action-popup.action-check{background:#4caf50;color:#fff}.action-popup.action-call{background:#2196f3;color:#fff}.action-popup.action-raise{background:#ff9800;color:#1a1a2e}.action-popup.action-allin{background:linear-gradient(135deg,#f44336,#ff6b6b);color:#fff;font-size:.9rem}.action-amount{margin-left:.25rem}.emote-popup{position:absolute;top:-45px;left:50%;transform:translate(-50%);padding:.5rem;border-radius:50%;background:#000c;border:2px solid #ffd700;animation:emotePopIn .3s ease-out,emoteBounce .5s ease-in-out .3s 3,emoteFadeOut .3s ease-in 2.2s forwards;box-shadow:0 4px 15px #ffd70066;z-index:15}.emote-icon{font-size:2rem;display:block;animation:emoteWiggle .5s ease-in-out .3s 3}@keyframes emotePopIn{0%{transform:translate(-50%) scale(0);opacity:0}50%{transform:translate(-50%) scale(1.3)}to{transform:translate(-50%) scale(1);opacity:1}}@keyframes emoteBounce{0%,to{transform:translate(-50%) translateY(0)}50%{transform:translate(-50%) translateY(-8px)}}@keyframes emoteWiggle{0%,to{transform:rotate(0)}25%{transform:rotate(-10deg)}75%{transform:rotate(10deg)}}@keyframes emoteFadeOut{0%{opacity:1;transform:translate(-50%) scale(1)}to{opacity:0;transform:translate(-50%) scale(.5) translateY(-20px)}}.my-cards-section{background:#ffffff0d;border-radius:12px;padding:1rem}.my-cards-section h3{margin-bottom:.75rem}.my-hole-cards{display:flex;justify-content:center;gap:.5rem;margin-bottom:.75rem}.my-chips{text-align:center;color:gold}.action-panel{background:#000c;padding:1rem;border-top:2px solid #3a3a5c}.action-buttons{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}.action-btn{padding:1rem 2rem;font-size:1.125rem;font-weight:700;border-radius:8px}.fold-btn{background:#666;color:#fff}.check-btn{background:#4caf50;color:#fff}.call-btn{background:#2196f3;color:#fff}.raise-btn{background:#ff9800;color:#1a1a2e}.allin-btn{background:#f44336;color:#fff}.raise-section{display:flex;flex-direction:column;align-items:center;gap:.5rem}.raise-slider{display:flex;align-items:center;gap:.5rem}.raise-slider input[type=range]{width:150px}.raise-slider input[type=number]{width:80px;text-align:center}.preset-buttons{display:flex;gap:.25rem}.preset-buttons button{padding:.25rem .5rem;font-size:.75rem;background:#3a3a5c;color:#fff}.waiting-for-turn,.spectator-notice{text-align:center;padding:1rem;background:#00000080;color:#9090a0}.result-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000e6;padding:2rem 3rem;border-radius:12px;text-align:center;z-index:100}.result-overlay h2{color:gold}.hand-name{color:#4caf50;font-size:.875rem}.chat-player-name,.player-name-colored{font-weight:700}.color-picker{position:relative;display:inline-block}.color-swatch-btn{width:18px;height:18px;padding:0;border-radius:50%;border:2px solid rgba(255,255,255,.35);cursor:pointer;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;position:relative}.color-swatch-btn:hover{border-color:#fff;transform:scale(1.1)}.color-swatch-btn.is-random{border-color:#9090a0}.swatch-question{font-size:11px;font-weight:900;color:#1a1a2e;line-height:1;pointer-events:none}.color-picker-popover{position:absolute;top:calc(100% + 6px);left:0;background:#1a1a2e;border:1px solid #3a3a5c;border-radius:8px;padding:.75rem;box-shadow:0 8px 20px #00000080;z-index:500;min-width:220px}.color-picker-section-label{font-size:.7rem;color:#9090a0;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.35rem}.color-picker-section-label+.color-picker-grid{margin-bottom:.6rem}.color-picker-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.color-swatch{width:28px;height:28px;padding:0;border-radius:6px;border:2px solid transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.color-swatch.is-random{border-color:#9090a0}.swatch-question.large{font-size:16px;font-weight:900;color:#1a1a2e;line-height:1;pointer-events:none}.color-swatch:hover{transform:scale(1.1)}.color-swatch.selected{border-color:#fff;box-shadow:0 0 0 2px #1a1a2e,0 0 0 4px gold}.seat-name-row{display:flex;align-items:center;gap:.5rem}.seat-chips.editable{cursor:pointer;border-bottom:1px dashed rgba(255,215,0,.5)}.seat-chips.editable:hover{color:gold}.chip-edit-row{display:flex;align-items:center;gap:.35rem}.chip-edit-input{width:90px;padding:.25rem .4rem;font-size:.9rem;border-radius:4px;border:1px solid #ffd700;background:#1a1a2e;color:#fff}.chip-edit-label{font-size:.85rem;color:#9090a0}.pot-capped-notice,.mobile-pot-capped{text-align:center;padding:.5rem .75rem;margin-top:.5rem;background:#ff6b6b26;border:1px solid rgba(255,107,107,.5);border-radius:6px;color:#ff6b6b;font-size:.85rem;font-weight:600}.anonymize-section{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}.anonymize-label{font-size:.875rem;color:#9090a0;text-transform:uppercase;letter-spacing:.05em}.anonymize-options{display:flex;flex-wrap:wrap;gap:.5rem}.radio-option{display:flex;align-items:center;gap:.35rem;padding:.35rem .75rem;background:#1a1a2e;border:1px solid #3a3a5c;border-radius:6px;cursor:pointer;font-size:.9rem}.radio-option:hover{border-color:gold}.radio-option input[type=radio]{accent-color:#ffd700;cursor:pointer}.toggle-label{display:flex;align-items:center;gap:.5rem;margin-top:.75rem;cursor:pointer;font-size:.9rem}.toggle-label input[type=checkbox]{accent-color:#ffd700;cursor:pointer;width:18px;height:18px}.game-over-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:2000;animation:fadeIn .3s ease}.game-over-content{background:linear-gradient(135deg,#2a2a4a,#1a1a2e);padding:3rem 4rem;border-radius:16px;text-align:center;border:2px solid #ffd700;box-shadow:0 0 40px #ffd7004d}.game-over-content h2{color:gold;font-size:2.5rem;margin-bottom:1rem}.game-over-content p{color:#fff;font-size:1.25rem;margin-bottom:.5rem}.game-over-content .returning-text{color:#9090a0;font-size:1rem;margin-top:1rem}@media (max-width: 900px){.lobby-content{flex-direction:column}.lobby-sidebar{width:100%}.game-main{flex-direction:column}.game-sidebar{width:100%;flex-direction:row;flex-wrap:wrap}.poker-table{height:400px}.game-layout{flex-direction:column}.chat-section{width:100%;height:200px;order:2}.table-section{order:1;min-height:350px}.player-section{flex-direction:column;gap:1rem;padding:.75rem}.my-hole-cards{gap:.5rem}.winner-name{font-size:2rem}.winner-amount{font-size:1.75rem}.winner-hand{font-size:1.125rem}.action-buttons{flex-direction:column;width:100%}.action-btn{width:100%;padding:.875rem 1rem}.raise-section,.raise-slider{width:100%}.raise-slider input[type=range]{flex:1}}@media (max-width: 768px){body{overflow-x:hidden}.game-container{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.game-header{padding:.5rem;flex-wrap:nowrap;gap:.25rem}.room-info{font-size:.7rem;gap:.25rem}.room-info span{white-space:nowrap}.header-buttons{gap:.25rem}.header-buttons button{padding:.35rem .5rem;font-size:.75rem}.mute-btn svg{width:16px;height:16px}.chat-section{display:none}.chat-section.mobile-visible{display:flex;position:fixed;top:0;left:0;right:0;bottom:0;z-index:900;background:#1a1a2efa;height:100%;max-height:none;padding:1rem}.chat-toggle-btn{display:flex;padding:.35rem .5rem;font-size:.75rem;background:#3a3a5c;color:#fff;border:none;border-radius:6px;cursor:pointer;align-items:center;gap:.25rem}.chat-close-btn{position:absolute;top:.5rem;right:.5rem;padding:.5rem;background:#ff6b6b;color:#fff;border:none;border-radius:6px;font-size:1rem;cursor:pointer;z-index:10}.game-layout{flex:1;min-height:0;overflow:hidden}.table-section{flex:1;min-height:0;padding:.5rem;padding:25px 35px 30px;display:flex;align-items:center;justify-content:center;overflow:visible}.poker-table{height:100%;max-height:220px;width:100%;max-width:100%}.table-felt{width:70%;height:50%;position:relative;justify-content:center;padding-top:.5rem}.pot-display{position:absolute;bottom:8px;right:8px;padding:.15rem .4rem;min-width:auto;background:#0009;border-radius:12px}.pot-label{font-size:.5rem}.pot-amount{font-size:.8rem}.pot-display .chip-stack,.pot-display .chip-large{display:none}.pot-amount-text{display:block;font-size:.85rem;font-weight:700;color:gold}.phase-indicator{font-size:.6rem;margin-bottom:.25rem;position:absolute;top:5px;left:50%;transform:translate(-50%)}.community-cards{gap:.15rem;margin-top:0}.card-slot,.card-container,.card{width:36px;height:50px}.seat{width:60px;max-width:60px;min-width:60px;padding:.2rem;border-radius:6px}.seat-info{margin-bottom:.15rem}.player-name{font-size:.6rem}.player-chips{font-size:.55rem}.position-badges{gap:.15rem;margin-bottom:.15rem}.dealer-button-img{height:14px}.blind-badge{font-size:.4rem;padding:.05rem .15rem}.ai-badge,.me-badge{font-size:.5rem;padding:.05rem .2rem}.status-badge{font-size:.5rem;padding:.05rem .3rem}.seat-cards{gap:1px;margin-bottom:.15rem}.card.size-mini,.card-container.size-mini{width:22px;height:31px}.seat-bet{margin-top:.15rem}.chip-stack{gap:1px}.chip-small .chip-image{height:14px}.chip-small .chip-amount{font-size:.5rem}.player-section{flex-shrink:0;padding:.4rem .5rem;gap:.5rem;background:#000000d9;border-top:1px solid #3a3a5c;flex-direction:row;align-items:center;justify-content:space-between}.my-cards-area{flex-direction:row;gap:.4rem;align-items:center}.my-hole-cards{gap:.25rem}.card.size-large,.card-container.size-large{width:44px;height:62px}.my-info{gap:0;align-items:flex-start}.my-name{font-size:.7rem}.my-chips{font-size:.75rem}.action-panel{padding:0;border-top:none;background:transparent;flex:1;max-width:65%}.action-buttons{flex-direction:row;flex-wrap:wrap;gap:.25rem;justify-content:flex-end}.action-btn{flex:0 1 auto;min-width:auto;width:auto;padding:.4rem .6rem;font-size:.75rem}.raise-section{width:auto;flex-direction:row;align-items:center;gap:.25rem}.raise-slider{gap:.2rem}.raise-slider input[type=range]{width:60px}.raise-slider input[type=number]{width:50px;font-size:.7rem;padding:.25rem}.preset-buttons{display:none}.waiting-status{font-size:.75rem;padding:.25rem;background:transparent}.shot-clock{padding:.25rem .5rem;margin-bottom:0;flex-direction:row;gap:.35rem}.shot-clock-bar{width:50px;height:5px}.shot-clock-time{font-size:.75rem}.spectator-bar{padding:.5rem;font-size:.85rem}.action-popup{top:-25px;padding:.25rem .5rem;font-size:.65rem}.emote-popup{top:-35px;padding:.35rem}.emote-icon{font-size:1.5rem}}@media (max-width: 380px){.poker-table{max-height:180px}.table-felt{width:65%;height:45%}.seat{width:42px;max-width:42px;min-width:42px;padding:.1rem}.player-name{font-size:.45rem}.player-chips{font-size:.4rem}.card.size-mini,.card-container.size-mini{width:16px;height:22px}.card-slot,.card-container,.card{width:28px;height:39px}.card.size-large,.card-container.size-large{width:38px;height:53px}.action-btn{padding:.35rem;font-size:.65rem}.my-name{font-size:.6rem}.my-chips{font-size:.65rem}.table-section{padding-left:25px;padding-right:25px}}@media (max-width: 600px){.pot-amount{font-size:1.125rem}h1{font-size:1.75rem}.chat-messages{max-height:120px}.chat-message{font-size:.75rem}}.chip-animations-container{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:500}.flying-chips{position:absolute;top:var(--from-top);left:var(--from-left);transform:translate(-50%,-50%);animation:flyChips .6s ease-in-out forwards;display:flex;flex-direction:column;align-items:center}.flying-chips.to-winner{animation:flyChipsToWinner 1s ease-in-out forwards}@keyframes flyChips{0%{top:var(--from-top);left:var(--from-left);transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.2)}to{top:var(--to-top);left:var(--to-left);transform:translate(-50%,-50%) scale(.8);opacity:.8}}@keyframes flyChipsToWinner{0%{top:var(--from-top);left:var(--from-left);transform:translate(-50%,-50%) scale(.8);opacity:1}50%{transform:translate(-50%,-50%) scale(1.3)}to{top:var(--to-top);left:var(--to-left);transform:translate(-50%,-50%) scale(1);opacity:0}}.chip-stack-flying{display:flex;align-items:center;gap:-8px}.flying-chip{width:24px;height:24px;background:linear-gradient(135deg,gold,#ffb300,#ff8f00);border-radius:50%;border:3px solid #fff;box-shadow:0 2px 8px #0006,inset 0 2px 4px #fff6;animation:chipBounce .3s ease-out;margin-left:-8px}.flying-chip:first-child{margin-left:0}@keyframes chipBounce{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.flying-amount{font-size:1.1rem;font-weight:700;color:gold;text-shadow:0 2px 4px rgba(0,0,0,.8),0 0 10px rgba(255,215,0,.5);margin-top:4px;animation:amountPop .3s ease-out .1s both;white-space:nowrap;min-width:max-content}.flying-chips.to-winner .flying-amount{color:#4caf50;text-shadow:0 2px 4px rgba(0,0,0,.8),0 0 10px rgba(76,175,80,.5)}@keyframes amountPop{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.chip-rain-container{position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:1000;overflow:hidden}.falling-chip{position:absolute;top:-50px;background:linear-gradient(135deg,gold,#ffb300,#ff8f00);border-radius:50%;border:3px solid #fff;box-shadow:0 2px 8px #0006,inset 0 2px 4px #fff6;animation:chipFall var(--fall-duration, 2s) ease-in forwards;animation-delay:var(--fall-delay, 0ms);transform:rotate(var(--rotation, 0deg))}@keyframes chipFall{0%{top:-50px;transform:rotate(var(--rotation, 0deg));opacity:1}80%{opacity:1}to{top:110vh;transform:rotate(var(--rotation-end, 360deg));opacity:0}}.chip-rain-amount{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:4rem;font-weight:700;color:#4caf50;text-shadow:0 0 20px rgba(76,175,80,.8),0 0 40px rgba(76,175,80,.6),0 4px 8px rgba(0,0,0,.8);animation:winAmountPop .5s ease-out forwards;z-index:10}@keyframes winAmountPop{0%{transform:translate(-50%,-50%) scale(0);opacity:0}50%{transform:translate(-50%,-50%) scale(1.3)}to{transform:translate(-50%,-50%) scale(1);opacity:1}}.dealing-animation-container{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:400}.dealing-card{position:absolute;top:var(--from-top);left:var(--from-left);transform:translate(-50%,-50%);animation:dealCard .15s ease-out forwards;z-index:400}.dealing-card img{width:35px;height:50px;object-fit:contain;border-radius:4px;box-shadow:0 2px 8px #0006}@keyframes dealCard{0%{top:var(--from-top);left:var(--from-left);transform:translate(-50%,-50%) scale(.8) rotate(-10deg);opacity:1}to{top:var(--to-top);left:var(--to-left);transform:translate(-50%,-50%) scale(1) rotate(0);opacity:0}}.mobile-game{display:flex;flex-direction:column;height:calc(100vh - 50px);padding:.5rem;gap:.5rem;overflow:hidden}.mobile-opponents{display:flex;gap:.5rem;padding:.5rem .75rem;overflow-x:auto;background:#0000004d;border-radius:10px;min-height:95px;flex-shrink:0;scroll-behavior:smooth}.mobile-opponents::-webkit-scrollbar{height:4px}.mobile-opponents::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:2px}.mobile-no-opponents{display:flex;align-items:center;justify-content:center;width:100%;color:#ffffff80;font-style:italic}.mobile-opponent{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.5rem .6rem;background:#1e1e32cc;border-radius:8px;min-width:75px;position:relative;border:2px solid transparent;transition:border-color .3s,background .3s}.mobile-opponent.active-turn{border-color:gold;background:#ffd70026;box-shadow:0 0 10px #ffd7004d}.mobile-opponent.folded{opacity:.5}.mobile-opponent-name{font-size:.75rem;font-weight:600;text-align:center;white-space:nowrap;max-width:70px;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:.25rem}.mobile-ai-badge{background:#9c27b0;color:#fff;font-size:.55rem;padding:1px 4px;border-radius:3px}.mobile-dealer{background:gold;color:#000;font-size:.55rem;padding:2px 5px;border-radius:50%;font-weight:700;margin-left:2px}.mobile-opponent-chips{font-size:.7rem;color:#4caf50;font-weight:600}.mobile-opponent-cards{display:flex;gap:2px}.mobile-mini-card{width:18px;height:25px;background:linear-gradient(135deg,#3a3a5c,#2a2a4c);border-radius:2px;border:1px solid rgba(255,255,255,.2)}.mobile-opponent-bet{font-size:.65rem;color:gold;background:#00000080;padding:2px 5px;border-radius:3px}.mobile-opponent-status{font-size:.6rem;color:#ff6b6b;font-weight:600;text-transform:uppercase}.mobile-opponent-status.allin{color:gold}.mobile-opponent-action{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:gold;color:#000;font-size:.55rem;padding:2px 6px;border-radius:4px;font-weight:700;white-space:nowrap;animation:actionPop .3s ease-out}.mobile-emote{position:absolute;top:-22px;left:50%;transform:translate(-50%);font-size:1.4rem;animation:emoteBounce .5s ease-out}@keyframes emoteBounce{0%{transform:translate(-50%) scale(0)}50%{transform:translate(-50%) scale(1.3)}to{transform:translate(-50%) scale(1)}}.mobile-table{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;background:radial-gradient(ellipse at center,#1a4d1a,#0d260d);border-radius:12px;padding:.75rem;min-height:0;border:3px solid #4a2c2a;box-shadow:inset 0 0 30px #0000004d}.mobile-phase{font-size:.65rem;color:#fff9;text-transform:uppercase;letter-spacing:1px}.mobile-community-cards{display:flex;gap:3px;justify-content:center;flex-wrap:nowrap}.mobile-community-slot{width:72px;height:101px}.mobile-community-slot .card,.mobile-community-slot .card img,.mobile-community-slot .card-container{width:72px!important;height:101px!important}.mobile-card-placeholder{width:72px;height:101px;background:#ffffff14;border:2px dashed rgba(255,255,255,.15);border-radius:4px}.mobile-my-cards-on-table{display:flex;flex-direction:column;align-items:center;gap:.25rem;margin-top:.25rem}.mobile-my-cards-on-table .mobile-my-hole-cards{display:flex;gap:6px}.mobile-my-cards-on-table .mobile-my-hole-cards .card,.mobile-my-cards-on-table .mobile-my-hole-cards .card img,.mobile-my-cards-on-table .mobile-my-hole-cards .card-container{width:70px!important;height:98px!important}.mobile-my-info-inline{display:flex;align-items:center;gap:.5rem;font-size:.75rem}.mobile-my-info-inline .mobile-my-name{font-weight:600;color:#fff}.mobile-my-info-inline .mobile-my-chips{color:#4caf50;font-weight:700}.mobile-my-info-inline .mobile-my-bet{color:gold;font-size:.7rem}.mobile-pot{display:flex;align-items:center;gap:.5rem;background:#00000080;padding:.4rem 1rem;border-radius:20px;margin-top:.25rem}.mobile-pot-label{font-size:.65rem;color:#fff9;text-transform:uppercase}.mobile-pot-amount{font-size:1.1rem;font-weight:700;color:gold}.mobile-actions-area{background:#0006;border-radius:12px;padding:.75rem;flex-shrink:0}.mobile-action-row{display:flex;gap:.5rem;justify-content:stretch}.mobile-action-btn{flex:1;padding:.9rem .5rem;border:none;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:transform .1s,opacity .2s}.mobile-action-btn:active{transform:scale(.95)}.mobile-action-btn.fold{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff}.mobile-action-btn.check{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff}.mobile-action-btn.call{background:linear-gradient(135deg,#2ecc71,#27ae60);color:#fff}.mobile-action-btn.raise{background:linear-gradient(135deg,#f39c12,#e67e22);color:#fff}.mobile-action-btn.allin{background:linear-gradient(135deg,#9b59b6,#8e44ad);color:#fff}.mobile-raise-row{display:flex;gap:.5rem;align-items:center;margin-top:.5rem}.mobile-raise-slider{flex:1;height:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff3;border-radius:5px;outline:none}.mobile-raise-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:28px;height:28px;background:gold;border-radius:50%;cursor:pointer}.mobile-raise-slider::-moz-range-thumb{width:28px;height:28px;background:gold;border-radius:50%;cursor:pointer;border:none}.mobile-raise-row .mobile-action-btn{flex:0 0 auto;min-width:110px}.mobile-folded-msg,.mobile-waiting-msg{text-align:center;padding:1rem;color:#fff9;font-style:italic;font-size:1rem}.mobile-folded-msg{color:#ff6b6b}.mobile-spectator-bar{text-align:center;padding:1rem;background:#0006;border-radius:8px;color:#ffffffb3;font-style:italic}.mobile-chat-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#1a1a2efa;z-index:1000;display:flex;flex-direction:column;padding:3rem 1rem 1rem}.mobile-chat-overlay .chat-close-btn{display:block;position:absolute;top:.5rem;right:.5rem;padding:.5rem .75rem;background:#ff6b6b;color:#fff;border:none;border-radius:6px;font-size:1.2rem;cursor:pointer;z-index:10}.mobile-chat-overlay .chat-panel{flex:1;display:flex;flex-direction:column;height:100%;max-height:none}@media (max-width: 768px){.game-container{padding:0}.game-header{padding:.5rem;flex-wrap:wrap;gap:.5rem}.room-info{font-size:.7rem;gap:.5rem}.header-buttons{gap:.25rem}.header-buttons button{padding:.4rem .6rem;font-size:.7rem}.chat-toggle-btn{display:flex!important}}
