.desktop-layout {
    background-color: transparent !important;
    border: none !important;
    margin-top: 55px;
}

.message {
    text-align: end;
    background-color: #fff;
    border-radius: 15px;
    padding: 5px 20px;
    position: absolute;
    top: 25%;
    right: 5%;
    font-weight: 600;
    letter-spacing: 0.7px;
}

.images {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
    position: relative;
    gap: 5vw;
    margin-bottom: 2em;
    width: 950px;
}

.computer,
.result-box,
.player {
    width: 33%;
}

.computer img,
.main-player-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: none;
}

.shakeComputer {
    animation: shakeComputer 0.8s linear;
}

.shakePlayer {
    animation: shakePlayer 0.8s linear;
}

.points {
    margin: 2rem 0;
    text-align: center;
}

.computerPoints {
    margin-left: 3em;
}

.playerPoints {
    margin-right: 3em;
}

.options {
    margin-top: 5em;
    display: flex;
    justify-content: space-evenly;
}

.options button {
    background: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 1em 2em;
    border-radius: 7px;
    width: 150px;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition: 0.2s all linear;
}

.options button:hover {
    background-color: darkcyan;
    border: 1px solid darkcyan;
}

.actions , .mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
}

.desktop-reset-btn {
    padding: 10px 50px !important;
}

.mobile-reset-btn {
    font-size: 15px;
    letter-spacing: 1.2px;
}

.desktop-reset-btn , .mobile-reset-btn{
    background-color: transparent !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 600;
}

@keyframes shakeComputer {
    0% {
        transform: rotate(-30deg);
    }

    25% {
        transform: rotate(30deg);
    }

    50% {
        transform: rotate(-30deg);
    }

    75% {
        transform: rotate(30deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes shakePlayer {
    0% {
        transform: rotate(30deg);
    }

    25% {
        transform: rotate(-30deg);
    }

    50% {
        transform: rotate(30deg);
    }

    75% {
        transform: rotate(-30deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.player {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.player_img {
    margin-top: -24px;
}

.player-options {
    display: flex;
    flex-direction: column;
    margin-left: 40px;
}

.option-img,
.mobile-option-img {
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border 0.2s;
    border: 1px solid #e0e0e0;
    padding: 5px;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    object-fit: contain;
    background: #222;
    box-sizing: border-box;
    display: block;
}

.option-img:hover {
    border: 2px solid #fff;
}

.label {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #002244;
    letter-spacing: 1px;
}

.points {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    gap: 1rem;
}

.computer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 170px;
}

.player-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 235px;
}

.result-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    /* fixed height for consistent layout */
}

.result-message {
    display: block;
    text-align: center;
    font-size: 2rem;
    margin-top: 7rem;
    /* margin kam ya zero kar diya */
}

/* Victory Popup Styles */
.victory-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
}

.victory-popup.show {
    display: flex;
    z-index: 99999;
}

.victory-content {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.victory-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 2s infinite;
}

.victory-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.victory-title {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    text-shadow: none !important;
    margin: 2rem auto 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.victory-message {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 1.4rem;
}

.victory-close-btn {
    background: #195781;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.victory-close-btn:hover {
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.5);
    }

    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Confetti effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ffd700;
    animation: confetti-fall 3s linear infinite;
    z-index: 999;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Hide mobile layout by default, show on mobile */
.mobile-layout {
    display: none;
}

.desktop-layout {
    display: block;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    .desktop-layout {
        display: none !important;
    }

    .mobile-layout {
        display: block !important;
    }

    .mobile-message {
        text-align: center;
        font-size: 1.3rem;
        margin: 1.5em 0 1em 0;
    }

    .mobile-images {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1em;
        gap: 1em;
    }

    .mobile-computer,
    .mobile-player {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-computer-img,
    .mobile-main-player-img {
        width: 70px;
        height: 70px;
        margin-bottom: 0.5em;
    }

    .mobile-player-options {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
        height: fit-content;
        margin: 0 auto;
    }

    .victory-content {
        padding: 1.2rem !important;
        border-radius: 12px !important;
        max-width: 90vw !important;
        font-size: 1rem !important;
    }

    .victory-title {
        font-size: 1.7rem !important;
    }

    .victory-message {
        font-size: 1.1rem !important;
    }

    .victory-icon {
        font-size: 2.2rem !important;
    }

    .victory-close-btn {
        padding: 0.7rem 1.2rem !important;
        font-size: 1rem !important;
    }
}

/* Computer & Player images: same as desktop (120x120) */
.mobile-computer-img,
.mobile-main-player-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto 0.5em auto;
}

/* Option images: same size as desktop (120x120) */

.mobile-option-img.selected,
.mobile-option-img:active {
    border: 3px solid #fff;
    transform: scale(1.02);
}

/* Player area: center everything */
.mobile-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.mobile-result-box {
    text-align: center;
    margin: 1.5em 0;
    min-height: 2em;
}

.mobile-result-message {
    font-size: 2rem;
    font-weight: bold;
}

.mobile-points {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 350px;
    margin: 1.5em auto 2em auto;
    font-size: 1.2rem;
    background: none;
    padding: 0 16px;
    box-sizing: border-box;
    gap: 0.5em;
    letter-spacing: 1.2px;
}

 .mobile-label {
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1.1px;
}


.mobile-points .mobile-points-center {
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-weight: bold;
    font-size: 1.2rem;
}

.mobile-actions {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-bottom: 2em;
}