@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;

}
@media (min-height: 1000px) {
    body {
        padding-bottom: 130px;
    }
    
}
.default {background: linear-gradient(135deg, royalblue, blueviolet);}
.dark {background: linear-gradient(135deg, rgb(0, 55, 71), rgb(0, 16, 41));}
.light {background: linear-gradient(135deg, rgb(241, 252, 255), rgb(173, 224, 255));}
.nature {background: linear-gradient(135deg, rgb(34, 139, 34), rgb(144, 238, 144));}
.sunset {background: linear-gradient(135deg, rgb(255, 0, 191), rgb(255, 251, 0));}
.ocean {background: linear-gradient(135deg, rgb(0, 105, 148), rgb(0, 191, 255));}
.fire {background: linear-gradient(135deg, white, rgb(255, 195, 0), rgb(255, 0, 98));}
.midnight {background: linear-gradient(135deg, #0f0c29 0%, #302b63 40%, rgb(86, 86, 202) 50%, #302b63 60%, #24243e 100%);}
.royal {background: linear-gradient(135deg, rgb(75, 0, 130), crimson);}
.lava {background: linear-gradient(135deg, salmon, rgb(195, 55, 100), rgb(29, 38, 113));}
.cosmic {background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 30%, #4b134f 70%, #c94b4b 100%);}
.seafoam {background: conic-gradient(darkslategray, teal, lightseagreen, turquoise, paleturquoise, darkslategray);}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}
h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
header {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;

    & span.container {
        position: relative;
        display: inline-block;
    }
    & span.glow {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        z-index: -1;
        transform: translate(-50%, -50%);
        filter: blur(8px);
        opacity: 0.75;
        background: conic-gradient(
            from 0deg,
            #ff6b6b,
            #feca57,
            #48dbfb,
            #ff9ff3,
            #54a0ff,
            #5f27cd,
            #ff6b6b
        );
        animation: spinning-glow 10s linear infinite;
    }
}
footer {
    position: sticky;
    bottom: 20px;
    z-index: 5;
}
.display-pannel {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);

    & > div {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
        min-width: 300px;
        max-width: 800px;
        min-height: 500px;
        max-height: 700px;
        background-color: rgba(255, 255, 255, 0.75);
        border-radius: 12px;
        padding: 20px;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;

        & > div {
            overflow-y: scroll;
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
            width: 100%;
            height: 100%;
        }
        & h2 {
            color: rgb(0, 153, 255);
            font-size: 2.5rem;
            margin-bottom: 0;
        }
        & h3 {
            color: blueviolet
        }
        & hr {
            border-color: rgba(211, 211, 211, 0.75);
        }
        & .close {
            background-color: rgb(255, 64, 64);
        }
    }

    &.powerups-display > div {
        max-width: 400px;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;

        & > button.powerup {
            background: linear-gradient(135deg, royalblue, blueviolet);
            display: flex;
            justify-content: space-between;
            font-size: 1.2rem;
            font-weight: bold;
            margin: 0;

            &:hover {
                transform: translateX(4px);
            }
            &:active {
                transform: translate(2px, 2px);
            }
            &.disabled {
                background: darkred;
                background-color: rgba(128, 128, 128, 0.5);
                cursor: not-allowed;
                transform: none;
                opacity: 0.75;

                &:hover, &:active {
                    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
                }
            }
            & .remaining {
                background-color: rgba(255, 255, 255, 0.5);
                border-radius: 12px;
                padding: 2px 8px;
            }
        }
    }
    &.tutorial-pannel > div {
        & .interactive-demo {
            background: linear-gradient(135deg, lightblue, navy);
        }
        & > div {
            font-size: 1.1rem;
            line-height: 1.5;

            & ul {
                list-style-type: circle;
                margin-left: 40px;
            }
        }
    }
    &.stats-display div.stat-manager {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;

        & .basic-stats {
            display: flex;
            justify-content: space-evenly;
            flex-wrap: wrap;
            gap: 20px;
            width: 100%;
        }
        
        & .stat, & .hs-stat {
            background: linear-gradient(135deg, royalblue, blueviolet);
            border-radius: 12px;
            padding: 10px;
            text-align: center;
            flex: 1 1 120px;
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;

            & p {
                font-size: 1.1rem;
                margin-bottom: 6px;
            }
            & h3 {
                color: white;
                font-size: 1.75rem;
            }
        }
        & .high-scores {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            margin-top: 20px;

            & .overall.hs-stat {
                background: linear-gradient(135deg, rgb(255, 195, 0), rgb(255, 0, 98));
                width: 100%;
                padding: 10px 20px;
            }
            & .gm-scores {
                display: flex;
                justify-content: space-evenly;
                width: 100%;
                gap: 20px;
                flex-wrap: wrap;
            }
        }
    }
    & .options-btns {
        display: flex;
        align-items: center;
        overflow-y: visible;
        gap: 20px;

        & button {
            width: 50%;
            font-size: 1.1rem;

            &.reset-data {
                background-color: rgb(255, 0, 98);
            }
            &.close {
                background-color: rgb(52, 223, 0);
            }
        }
    }
    &.options-display > div > div {
        & .setting-select {
            margin-bottom: 20px;
        }
        & .dropdown {
            display: flex;
            flex-direction: column;

            & select {
                padding: 6px 12px;
                border-radius: 8px;
                border: 2px solid rgba(255, 255, 255, 0.5);
                background-color: rgba(255, 255, 255, 0.25);
                margin: 10px;
                font-weight: bold;
                cursor: pointer;
                font-size: 1.1rem;

                & option {
                    color: black;
                    padding: 10px;
                    font-weight: bold;
                    font-size: 1rem;

                    &.locked {
                        color: gray;
                        font-style: italic;
                        font-weight: normal;
                    }
                }
            }
        }
        & .label-list div {
            display: flex;
            flex-direction: column;
            padding: 0 20px;

            & label {
                margin-bottom: 10px;
                font-weight: bold;
                cursor: pointer;
                font-size: 1.05rem;

                & input {
                    margin-right: 10px;
                    transform: scale(1.2);
                    opacity: 1;
                }

                &:has(> input.locked) {
                    opacity: 0.75;
                    cursor: not-allowed;
                    font-weight: normal;
                    font-style: italic;
                }
            }
        }
        & .btn-list div {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 0 20px;
            justify-content: space-evenly;

            & button {
                flex: 1 1 120px;
                
                &.theme-select {
                    font-size: 1.15rem;
                    height: 60px;
                }
                &.icon-pack h4 {
                    font-size: 1.15rem;
                }
                &.selected {
                    border: 3px solid rgb(255, 255, 255);
                    box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.75);
                }
                &.locked {
                    transform: none;
                    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
                }

                &.data-option.export-data {
                    background-color: rgb(0, 153, 255);
                }
                &.data-option.import-data {
                    background-color: rgb(255, 0, 98);
                }
            }
        }
        & label:has(> input.something) {
            margin-left: 20px;
            width: fit-content;
            transform: scale(1.1);
            font-weight: bold;
            margin-bottom: 20px;
            cursor: pointer;
            display: block;
        }
    }
    &.store-display > div > div {
        & .floater.settings-floating {
            left: auto;
            right: 20px;
            cursor: pointer;
            background: linear-gradient(135deg, rebeccapurple, blueviolet);
            transition: all 0.3s ease-in-out;

            &:hover {
                background-color: rgba(255, 255, 255, 1);
                box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5);
            }
            &:active {
                transform: translateY(4px);
                opacity: 0.75;
                box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.5);
            }
        }
        
        & .shop-section {
            margin-bottom: 30px;

            &:last-child {
                margin-bottom: 0;
            }
            & h3 {
                color: rgb(255, 195, 0);
                font-size: 1.75rem;
            }
            & > div {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-evenly;
                gap: 20px;
                padding: 10px;

                & .shop-itm {
                    border-radius: 8px;
                    padding: 10px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-evenly;
                    text-align: center;
                    flex: 1 1 200px;
                    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
                    border: 2px solid rgba(0, 0, 0, 0.5);
                    opacity: 0.75;

                    &:not(.theme) {
                        background: linear-gradient(135deg, rgba(240, 255, 255, 0.75), rgba(220, 239, 255, 0.75));

                        &.bought {
                            background: linear-gradient(135deg, rgb(50, 205, 50), rgb(144, 238, 144));
                            border: 2px solid rgb(50, 205, 50);
                            box-shadow: 0px 0px 12px limegreen;
                        }
                    }
                    &.unlockable {
                        opacity: 1;

                        & button {
                            background-color: rgb(0, 153, 255);
                            cursor: pointer;
                            
                            &:hover {
                                transform: translateY(-2px) scale(1.025);
                            }
                            &:active {
                                transform: translateY(2px) scale(0.975);
                            }
                        }
                        & p {
                            color: rgb(64, 255, 64);
                        }
                    }
                    & abbr {
                        display: flex;
                        flex-direction: column;
                        justify-content: space-evenly;
                    }
                    & h4 {
                        font-size: 1.2rem;
                        margin-bottom: 6px;
                        text-shadow: 0px 1px 12px black;
                    }
                    & p {
                        font-size: 1rem;
                        margin-bottom: 10px;
                        text-shadow: 0px 2px 8px black;
                    }
                    & button {
                        background-color: rgb(82, 82, 82);
                        font-weight: bold;
                        transform: none;
                        cursor: not-allowed;
                    }
                    &.bought button {
                        background-color: gray;
                        cursor: not-allowed;
                        transform: none;
                        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
                    }
                    & * {
                        text-decoration: none;
                    }
                }
            }
        }
    }
    &.casino-display > div > div {
        display: flex;
        flex-direction: column;
        gap: 20px;
        
        & .casino-games {
            width: calc(100% - 10px);
            margin: 0 5px;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: space-evenly;

            & .casino-game-btn {
                flex: 1 1 200px;
                background: linear-gradient(135deg, rgb(100, 100, 100), rgb(68, 68, 68));
                border: 4px solid rgb(71, 71, 71);
                box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.5);
                border-radius: 12px;
                padding: 20px;
                text-align: center;
                display: flex;
                flex-direction: column;
                justify-content: space-evenly;
                gap: 10px;
                cursor: not-allowed;
                transition: all 0.3s ease-in-out;

                &.unlockable {
                    border: 4px solid rgba(0, 255, 115, 0.5);
                    box-shadow: 0px 2px 8px rgb(0, 255, 115);
                    cursor: pointer;
                    
                    &:hover {box-shadow: 0px 4px 12px rgb(0, 255, 115);}
                    &:active {box-shadow: 0px 1px 6px rgb(0, 255, 115);}
                }
                &.unlocked {
                    background: linear-gradient(135deg, rgb(0, 209, 94), rgb(144, 238, 144));
                    border: 4px solid rgb(0, 136, 61);
                    cursor: pointer;

                    & h4 {
                        display: none;
                    }
                }
                &:hover {
                    transform: translateY(-8px);
                    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
                }
                &:active {
                    transform: translateY(2px);
                    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.5);
                    opacity: 0.75;
                }
                & h3 {
                    color: rgb(255, 195, 0);
                }
                & p {
                    font-size: 0.9rem;
                    opacity: 0.9;
                }
                &.unlockable h4 {
                    color: rgb(0, 255, 115);
                }
            }
        }
    }

    &.load-in {
        display: block;
        animation: fadeIn 0.2s ease-in-out;
    }

    &.game-over {
        &.tie h2 {
            color: rgb(255, 195, 0);
        }
        &.win h2 {
            color: rgb(64, 255, 64);
        }
        &.lose h2 {
            color: rgb(255, 64, 64);
        }
        & > div {
            animation: fadeIn 0.5s ease-in-out;
            height: fit-content;
            width: fit-content;
            min-height: fit-content;

            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 20px;

            & .final-your-score {
                color: rgb(64, 255, 64);
                font-size: 1.25rem;
            }
            & .final-ai-score {
                color: rgb(255, 64, 64);
                font-size: 1.25rem;
            }
            & h4 span {
                font-size: 1.5rem;
            }
            & h5 {
                color: rgb(255, 195, 0);
                margin: 10px 0px;
            }
            & button {
                background: linear-gradient(135deg, limegreen, green);
                font-size: 1.1rem;
                font-weight: bold;
            }
        }
    }
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.sci-fi-font {
    font-family: 'Orbitron', monospace;
}
.floater {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, gold, goldenrod);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: bold;
    z-index: 3;
}
.credits-large {
    background: linear-gradient(135deg, gold, goldenrod);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: calc(100% - 10px);
    margin-bottom: 30px;
    margin: 0 5px;

    & p {
        font-size: 1.1rem;
        margin-bottom: 6px;
        color: rgb(255, 235, 120)
    }
    & h3 {
        color: white !important;
        font-size: 2.5rem;
    }
}

button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    &:hover {
        box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5);
        transform: translateY(-2px) scale(1.025);
    }
    &:active {
        box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
        transform: translateY(2px) scale(0.975);
    }

    &.tutorial {background-color: rgb(255, 68, 0);}
    &.stats {background-color: rgb(0, 200, 255);}
}

main {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    width: 90%;
    max-width: 1200px;
    min-width: 320px;
    display: flex;
}
.side-pannel {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    &.right {
        & .scores {
            width: 100%;
            position: relative;

            & .floating-indicator {
                position: absolute;
                display: none;
                font-size: 2rem;
                font-weight: bold;
                border-radius: 16px;
                border: 4px solid white;
                text-align: center;
                padding: 10px 20px;
                left: 50%;
                transform: translateX(-50%);
                
                &.player {
                    color: rgb(64, 255, 64);
                    border-color: rgb(52, 212, 52);
                    filter: drop-shadow(0px 4px 8px rgb(52, 212, 52));
                }
                &.ai {
                    color: rgb(255, 64, 64);
                    border-color: rgb(255, 64, 64);
                    filter: drop-shadow(0px 4px 8px rgb(255, 64, 64));
                }
                &.shown {
                    display: block;
                    animation: grow-pulse 1.1s linear;
                }
            }
        }
        & .score-div {
            background-color: rgba(255, 255, 255, 0.25);
            border-radius: 8px;
            padding: 10px;
            text-align: center;
            width: 100%;
            margin: 20px 0;

            &.player {
                border: 2px solid rgb(50, 205, 50);
                box-shadow: 0px 0px 12px limegreen;
                margin-top: 0;
                & > h3 {
                    color: rgb(64, 255, 64);
                    margin-bottom: 6px;
                }
            }
            &.computer {
                border: 2px solid rgb(220, 20, 60);
                box-shadow: 0px 0px 12px crimson;
                position: relative;
                & > h3 {
                    color: rgb(255, 64, 102);
                    margin-bottom: 6px;
                }
            }
            & .score {
                font-size: 1.5rem;
            }
        }
        & .settings {
            display: flex;
            flex-direction: column;
            width: 100%;

            & .new-game {background-color: rgb(76, 0, 255);}
            & .options {background-color: rgb(0, 153, 255);}
            & .store {background-color: rgb(255, 0, 98);}
            & .casino {background-color: rgb(255, 195, 0);}
        }
    }
    &.left {
        & .current-card {
            width: 100%;
            background-color: rgba(255, 255, 255, 0.25);
            border-radius: 8px;
            padding: 10px;
            text-align: center;
            margin-bottom: 20px;

            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: all 0.3s ease-in-out;
            
            &.opacity {
                opacity: 0.5;
            }
            & .next-card {
                margin: 4px 0 8px 0;
                display: none; /* block */
            }
            & .full-card {
                position: relative;
                width: 150px;
                height: 150px;
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 20px 10px;

                & .card-num {
                    position: absolute;
                    font-size: 6rem;
                    font-weight: bold;
                    z-index: 1;
                    user-select: none;
                }
                & .card-display {
                    position: relative;
                    top: 50%;
                    left: 50%;
                    z-index: 0;
                    background: conic-gradient(
                        from 0deg,
                        #ff6b6b,
                        #feca57,
                        #48dbfb,
                        #ff9ff3,
                        #54a0ff,
                        #5f27cd,
                        #ff6b6b
                    );
                    height: 100%;
                    width: 100%;
                    border-radius: 100%;
                    filter: blur(10px);
                    box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.5);
                    animation: spinning-glow 30s linear infinite;
                }
            }
        }
        & .multiplier-display {
            width: 100%;
            background-color: rgba(255, 255, 255, 0.25);
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 20px;
            text-align: center;
            cursor: pointer;

            & > h4 {
                margin-bottom: 6px;
                font-size: 1.1rem;
            }
            & .main-multiplier {
                font-weight: bold;

                & span {font-weight: bold;}
                &.positive, &.positive > span {color: rgb(64, 255, 64)}
                &.negative, &.negative > span {color: rgb(255, 64, 64)}
            }
            & .all-multipliers {
                display: none; /* flex */
                margin-top: 10px;

                & hr {
                    margin: 6px 0;
                    border-color: transparent;
                    background-color: rgba(255, 255, 255, 0.5);
                }
                & .multiplier.base {
                    font-style: italic;
                    color: rgba(255, 255, 255, 0.7);
                }
                & .total-multiplier * {
                    font-weight: bold;
                }
                & .multiplier, & .total-multiplier {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 0px 12px;
                    margin: 6px 0;
                    text-align: left;
                    line-height: 1.2;

                    &.positive * {
                        color: rgb(96, 255, 96);
                    }
                    &.negative * {
                        color: rgb(255, 96, 96);
                    }
                }
            }
        }
        & .powerups-toggle {
            background-color: rgb(60, 211, 0);
            width: 100%;
        }
    }
}
.center.pannel {
    width: 50%;
    border-radius: 12px;
    margin: 0px 20px;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    & .terminal {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        padding: 10px;
        text-align: center;
    }
    & .gameboard-section {
        width: 100%;
        position: relative;
    }
    & .gameboard-connections {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 10px;
        z-index: -1;
        
        & line.connection {
            stroke: rgba(255, 255, 255, 0.5);
            filter: drop-shadow(0px 0px 6px rgba(255, 255, 255, 0.5));
            stroke-linecap: round;
            stroke-linejoin: round;

            &.connection-part {
                stroke: rgba(218, 165, 32, 0.5);
                filter: drop-shadow(0px 0px 12px rgba(255, 217, 0, 0.5));
            }
            &.helper {
                stroke: cyan;
                filter: drop-shadow(0px 0px 12px cyan);
            }
        }
    }
    & .gameboard {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        min-height: 300px;
        max-height: 550px;
        padding: 20px;
        aspect-ratio: 1 / 1;
        display: grid;
        gap: 12px;
        transition: all 0.5s ease-in-out;
        
        &.green-fade {
            background-color: rgba(50, 205, 50, 0.3);
        }
        &.red-fade {
            background-color: rgba(220, 20, 60, 0.3);
        }
        &.yellow-fade {
            background-color: rgba(255, 217, 0, 0.3);
        }
        & .map-cell {
            border: 3px dashed rgba(255, 255, 255, 0.5);
            box-shadow: inset 0px 0px 8px rgba(255, 255, 255, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            border-radius: 16px;
            cursor: pointer;
            user-select: none;
            font-size: 0.9rem;
            transition: all 0.2s ease-in-out;
            z-index: 2;
            backdrop-filter: blur(16px);

            &:hover {
                border-color: rgb(0, 140, 255);
                box-shadow: inset 0px 0px 12px rgb(44, 160, 255);
                background-color: rgba(44, 160, 255, 0.3);
                transform: scale(1.1);

                &.empty * {
                    animation: spin-pulse 1s ease-in-out infinite;
                }
            }
            &:active {
                opacity: 0.8;
                transform: scale(0.95);
            }

            &.occupied, &.red, &.green {
                cursor: default;
                transform: none;
                opacity: 1;
                font-weight: bold;
                font-size: 2rem;
            }
            &.occupied {
                background-color: rgba(128, 128, 128, 0.3) !important;
                border-color: rgb(95, 95, 95);
                box-shadow: inset 0px 0px 12px gray;
            }
            &.red {
                background-color: rgba(220, 20, 60, 0.3) !important;
                border-color: darkred;
                box-shadow: inset 0px 0px 12px crimson;
            }
            &.green {
                background-color: rgba(50, 205, 50, 0.3) !important;
                border-color: darkgreen;
                box-shadow: inset 0px 0px 12px limegreen;
            }
            &.connection-part {
                background-color: rgba(255, 217, 0, 0.3);
                border-color: goldenrod;
                box-shadow: inset 0px 0px 12px gold;
            }
            &.helper {
                box-shadow: inset 0px 0px 12px gold;
                border-color: gold;
                background-color: rgba(0, 255, 255, 0.3);
            }
            &.helping:hover {
                background-color: rgba(0, 255, 255, 0.3);
                & > p {
                    color: rgb(0, 255, 0);
                    font-weight: bold;
                }
            }
            &.bonus-point {
                transform: scale(1.5) !important;
            }
            &.placing {
                animation: placed 0.5s linear;
            }
            &.matched {
                animation: matched 0.5s linear;
            }
        }
    }
}
.mini-card {
    position: absolute;
    display: none;
    padding: 10px 15px;
    border: 8px solid white;
    font-size: 5rem;
    font-weight: bold;
    border-radius: 16px;
    text-align: center;
    z-index: 2;
    
    &.player {
        color: rgb(64, 255, 64);
        border-color: rgb(50, 205, 50);
        filter: drop-shadow(0px 4px 8px rgb(50, 205, 50));
        top: 35%
    }
    &.ai {
        top: -30%;
        left: 30%;
        color: rgb(255, 64, 64);
        border-color: rgb(255, 64, 64);
        filter: drop-shadow(0px 4px 8px rgb(255, 64, 64));
    }
    &.shown {
        animation: spin 0.8s linear;
        display: block;
    }
}

@keyframes spinning-glow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@keyframes spin-pulse {
    0% {
        transform: rotate(0deg) scale(0);
    }
    50% {
        transform: rotate(360deg) scale(3);
    }
    100% {
        transform: rotate(720deg) scale(0.1);
    }
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}
@keyframes grow-pulse {
    0% {
        transform: scale(1) translateX(-50%);
        opacity: 1;
    }
    20% {
        transform: scale(1.2) translateY(-8px) translateX(-45%);
        opacity: 1;
    }
    40% {
        transform: scale(1.3) translateY(-16px) translateX(-40%);
        opacity: 1;
    }
    50% {
        transform: scale(1) translateY(-20px) translateX(-50%);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateY(-50px) translateX(-50%);
        opacity: 0;
    }
}
@keyframes placed {
    0% {
        transform: scale(1);
    }
    33% {
        transform: scale(0.55);
        opacity: 0.75;
    }
    66% {
        transform: scale(1.45);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes matched {
    0% {
        transform: scale(1) rotate(0deg);
    }
    33% {
        transform: scale(0.75) rotate(90deg);
        opacity: 0.75;
    }
    66% {
        transform: scale(1.25) rotate(-90deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}