/* Casino Chips */
.chip-stack-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.bet-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    position: absolute;
    transition: transform 0.6s ease-in-out, opacity 0.5s;
    z-index: 4 !important;
}

.chip-stack {
    display: flex;
    flex-direction: column-reverse;
}

.chip {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 9px;
    color: #111;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.6),
        inset 0 3px 4px rgba(255, 255, 255, 0.7),
        inset 0 -3px 4px rgba(0, 0, 0, 0.6);
    margin-top: -22px;
    position: relative;
}

.chip-stack .chip:first-child {
    margin-top: 0;
}

/* Chip Drop Animation */
@keyframes dropChip {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.chip-animated {
    opacity: 0;
    animation: dropChip 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chip-fly-to-pot {
    transition: transform 0.6s ease-in-out !important;
    z-index: 999 !important;
    position: relative;
}

.ghost-chip {
    position: fixed !important;
    z-index: 9999 !important;
    transition:
        left 0.6s ease-in-out,
        top 0.6s ease-in-out !important;
    pointer-events: none;
    margin: 0 !important;
}

.bet-value {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

/* Blue 1 */
.chip-1 {
    background:
        radial-gradient(circle at center, #fff 40%, transparent 41%),
        repeating-conic-gradient(#1565c0 0deg 20deg, #fff 20deg 40deg);
    border: 1px solid #0d47a1;
}

/* Red 5 */
.chip-5 {
    background:
        radial-gradient(circle at center, #fff 40%, transparent 41%),
        repeating-conic-gradient(#c62828 0deg 20deg, #fff 20deg 40deg);
    border: 1px solid #8e1d1d;
}

/* Green 25 */
.chip-25 {
    background:
        radial-gradient(circle at center, #fff 40%, transparent 41%),
        repeating-conic-gradient(#2e7d32 0deg 20deg, #fff 20deg 40deg);
    border: 1px solid #1b5e20;
}

/* Black 100 */
.chip-100 {
    background:
        radial-gradient(circle at center, #fff 40%, transparent 41%),
        repeating-conic-gradient(#212121 0deg 20deg, #fff 20deg 40deg);
    border: 1px solid #000;
}

/* Purple 500 */
.chip-500 {
    background:
        radial-gradient(circle at center, #fff 40%, transparent 41%),
        repeating-conic-gradient(#6a1b9a 0deg 20deg, #fff 20deg 40deg);
    border: 1px solid #4a148c;
}

/* Orange 1000 */
.chip-1000 {
    background:
        radial-gradient(circle at center, #fff 40%, transparent 41%),
        repeating-conic-gradient(#e65100 0deg 20deg, #fff 20deg 40deg);
    border: 1px solid #bf360c;
    font-size: 7px;
}

/* Gold 5000 */
.chip-5000 {
    background:
        radial-gradient(circle at center, #fff 40%, transparent 41%),
        repeating-conic-gradient(#f9a825 0deg 20deg, #fff 20deg 40deg);
    border: 1px solid #f57f17;
    font-size: 7px;
}

/* Pink 10000 */
.chip-10000 {
    background:
        radial-gradient(circle at center, #fff 40%, transparent 41%),
        repeating-conic-gradient(#ad1457 0deg 20deg, #fff 20deg 40deg);
    border: 1px solid #880e4f;
    font-size: 6px;
}

/* Premium Pot Display */
#pot-amount {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 8px 24px;
    color: #4ade80;
    font-family: "Courier New", Courier, monospace;
    font-weight: 900;
    font-size: 15px;
    box-shadow:
        0 8px 15px rgba(0, 0, 0, 0.5),
        inset 0 2px 2px rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    backdrop-filter: blur(4px);
    margin-top: 10px;
    text-align: center;
}


/* Chips container */
.pucks-container {
    position: absolute !important;
    display: flex !important;
    gap: 4px !important;
    z-index: 25 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

/* Chip positioning by seat */

/* Bottom seats */
.visual-0 .player-plaque-wrapper .pucks-container,
.visual-1 .player-plaque-wrapper .pucks-container,
.visual-8 .player-plaque-wrapper .pucks-container {
    top: auto !important;
    bottom: calc(100% + 5px) !important;
    justify-content: flex-end !important;
}

.visual-0 .player-plaque-wrapper .pucks-container {
    left: calc(100% + 10px) !important;
    right: auto !important;
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

body[data-max-seats="6"] .visual-0 .player-plaque-wrapper .pucks-container,
body[data-max-seats="9"] .visual-0 .player-plaque-wrapper .pucks-container {
    top: -30px !important;
    transform: none !important;
}

.visual-1 .player-plaque-wrapper .pucks-container {
    right: 0 !important;
    left: auto !important;
}

.visual-8 .player-plaque-wrapper .pucks-container {
    left: 0 !important;
    right: auto !important;
}

/* Top seats */
.visual-3 .player-plaque-wrapper .pucks-container,
.visual-4 .player-plaque-wrapper .pucks-container,
.visual-5 .player-plaque-wrapper .pucks-container,
.visual-6 .player-plaque-wrapper .pucks-container {
    top: calc(100% + 35px) !important;
    bottom: auto !important;
    justify-content: flex-end !important;
}

.visual-3 .player-plaque-wrapper .pucks-container,
.visual-4 .player-plaque-wrapper .pucks-container {
    right: 0 !important;
    left: auto !important;
}

.visual-5 .player-plaque-wrapper .pucks-container {
    left: 40px !important;
    right: auto !important;
}

.visual-6 .player-plaque-wrapper .pucks-container {
    left: 0 !important;
    right: auto !important;
}

/* Middle seats chip positioning */
.visual-2 .player-plaque-wrapper .pucks-container {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: -25px !important;
    left: auto !important;
}

.visual-7 .player-plaque-wrapper .pucks-container {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: -35px !important;
    right: auto !important;
}


/* Current Bet UI */
.current-bet {
    position: absolute;
    z-index: 5;
}
