*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--cp-primary: hsl(48, 95%, 53%);--cp-primary-foreground: hsl(160, 30%, 6%);--cp-background: hsl(160, 30%, 6%);--cp-foreground: hsl(0, 0%, 98%);--cp-card-bg: hsl(160, 25%, 10%);--cp-secondary: hsl(160, 20%, 14%);--cp-muted: hsl(160, 15%, 18%);--cp-muted-foreground: hsl(0, 0%, 65%);--cp-accent: hsl(15, 80%, 55%);--cp-border: hsl(160, 20%, 20%);--cp-table-felt: hsl(152, 40%, 10%);--cp-winner-glow: hsl(48, 100%, 60%);--cp-success: hsl(142, 76%, 36%);--cp-card-shadow: 0 8px 32px rgba(0, 0, 0, .5)}html,body{width:100%;height:100%;margin:0;padding:0;overflow:hidden;background:var(--cp-background);font-family:system-ui,-apple-system,sans-serif}#gameArea{width:100%;height:100%}.calpoker-game{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:2rem 1rem 1rem;background:radial-gradient(ellipse at center,#143425,#0b1e15);position:relative;overflow-x:clip;overflow-y:hidden}.status-bar{position:absolute;top:.5rem;left:0;right:0;display:flex;justify-content:center;padding:0 1rem;font-size:.75rem;color:var(--cp-primary);font-weight:500;z-index:10}#statusText{opacity:.8}.player-section{display:flex;flex-direction:column;align-items:center;gap:.5rem}.player-remote,.player-local{flex-direction:column}.player-header{display:flex;align-items:center;gap:.75rem}.player-name{font-family:Cinzel,serif;font-size:.9rem;font-weight:600;color:var(--cp-foreground);text-shadow:0 2px 4px rgba(0,0,0,.5)}.hand-badge{display:flex;align-items:center;gap:.5rem;background:var(--cp-secondary);padding:.25rem .75rem;border-radius:9999px;border:1px solid var(--cp-border)}.hand-badge .trophy-icon{font-size:1rem}.hand-badge .hand-name{font-size:.75rem;font-weight:500;color:var(--cp-foreground)}.cards-hand{display:flex;justify-content:center;align-items:flex-end;position:relative;min-height:120px;perspective:1000px;padding:0 1rem;overflow:visible}.cards-hand-remote{height:100px;align-items:flex-start;margin-top:1rem}.cards-hand-local{height:120px;margin-bottom:1rem}.playing-card{position:relative;width:52px;height:72px;border-radius:3px;box-shadow:var(--cp-card-shadow);transition:all .3s cubic-bezier(.34,1.56,.64,1);cursor:pointer;overflow:hidden;flex-shrink:0;background:#fff;transform-origin:center bottom}.playing-card img{width:100%;height:100%;object-fit:contain;border-radius:3px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}.playing-card.face-down{background:linear-gradient(135deg,#265941,#153727);background-image:repeating-linear-gradient(45deg,transparent,transparent 4px,hsla(48,95%,53%,.15) 4px,hsla(48,95%,53%,.15) 8px);border:2px solid hsla(48,95%,53%,.4)}.playing-card:hover:not(.selected):not(.disabled):not(.best-hand):not(.face-down){transform:translateY(-8px) scale(1.05);box-shadow:0 12px 25px #0006;z-index:10}.playing-card.selected{border:3px solid var(--cp-primary);box-shadow:0 8px 25px #f9cb1599;z-index:20}.playing-card.best-hand{border:3px solid hsl(142,76%,45%);box-shadow:0 0 25px #1cca5bcc;z-index:25;animation:pulse-glow 1.5s ease-in-out infinite}.selection-checkmark{position:absolute;top:-4px;right:-4px;width:18px;height:18px;background:var(--cp-primary);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:var(--cp-primary-foreground);box-shadow:0 2px 4px #0000004d;z-index:5}.playing-card.disabled{cursor:default;pointer-events:none}.playing-card.remote-player-card{cursor:default}.center-deck{flex:1;display:flex;justify-content:center;align-items:center}.deck-icon{font-size:2.5rem;opacity:.25;filter:drop-shadow(0 4px 8px rgba(0,0,0,.5))}.game-result{display:flex;flex-direction:column;align-items:center;gap:.5rem;animation:fade-in .5s ease-out}.result-icon{font-size:3rem;animation:bounce 1s ease-in-out infinite}.result-title{font-family:Cinzel,serif;font-size:1.5rem;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,.5)}.result-title.win{color:var(--cp-primary)}.result-title.lose{color:var(--cp-muted-foreground)}.result-title.tie{color:var(--cp-foreground)}.result-hand-name{font-size:.875rem;color:var(--cp-foreground);background:var(--cp-secondary);padding:.25rem 1rem;border-radius:9999px}.error-message{position:absolute;top:2rem;left:50%;transform:translate(-50%);background:#ef4343e6;color:#fff;padding:.75rem 1.5rem;border-radius:8px;display:flex;align-items:center;gap:.5rem;z-index:100;animation:slide-down .3s ease-out}.error-icon{font-weight:700;font-size:1.25rem}.error-text{font-size:.875rem}.confirm-button-container{display:flex;justify-content:center;padding:.75rem 1rem 1.5rem;opacity:1;transition:opacity .15s ease}.btn-confirm-discards{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 2rem;border-radius:9999px;border:none;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;background:linear-gradient(135deg,var(--cp-primary) 0%,hsl(38,90%,50%) 100%);color:var(--cp-primary-foreground);box-shadow:0 4px 15px #eab3084d}.btn-confirm-discards:hover:not(:disabled){transform:scale(1.05);box-shadow:0 6px 20px #eab30866}.btn-confirm-discards:active:not(:disabled){transform:scale(.95)}.btn-confirm-discards:disabled{background:var(--cp-muted);color:var(--cp-muted-foreground);cursor:not-allowed;box-shadow:none}.btn-confirm-discards .confirm-icon{font-size:1.1rem}@keyframes float-up{0%{opacity:0;transform:translateY(20px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pulse-glow{0%,to{box-shadow:0 0 15px #1cca5b99}50%{box-shadow:0 0 30px #1cca5be6}}@keyframes winner-glow{0%{box-shadow:0 0 10px #ffd63380,0 0 20px #ffd6334d;transform:scale(1)}to{box-shadow:0 0 25px #ffd633cc,0 0 50px #ffd63380;transform:scale(1.05)}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes slide-up{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slide-down{0%{transform:translate(-50%,-20px);opacity:0}to{transform:translate(-50%);opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes card-flip{0%{transform:rotateY(0)}50%{transform:rotateY(90deg)}to{transform:rotateY(0)}}.animate-float-up{animation:float-up .4s cubic-bezier(.34,1.56,.64,1) forwards}.animate-pulse-glow{animation:pulse-glow 1.5s ease-in-out infinite}.animate-winner-glow{animation:winner-glow 1s ease-in-out infinite alternate}@media (min-width: 640px){.playing-card{width:60px;height:84px}.cards-hand-remote{height:110px}.cards-hand-local{height:130px}.player-name{font-size:1rem}}@media (min-width: 768px){.playing-card{width:70px;height:98px}.cards-hand-remote{height:125px}.cards-hand-local{height:150px}}@media (max-height: 500px){.calpoker-game{padding:.5rem}.playing-card{width:45px;height:63px}.cards-hand{min-height:80px}.cards-hand-remote,.cards-hand-local{height:85px}.deck-icon{font-size:2rem}}
