body{
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, hsl(214, 47%, 23%), hsl(237, 48%, 15%));
    min-height: 100vh;
    height: 100%;
}

header{
    margin: 30px 25px;
    padding: 12px;
    border: 3px solid hsl(246, 11%, 37%);
    border-radius: 10px;
}

header a{
    text-decoration: none;
    cursor: pointer;
}

.navbar{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo{
    display: block;
    height: auto;
    width: 90px;
    max-width: 100%;
    padding-left: 8px;
    cursor: pointer;
}

.logo2{
    display: block;
    height: auto;
    width: 60px;
    max-width: 100%;
    padding-left: 8px;
}

.score-board{
    background-color: white;
    border-radius: 4px;
    padding: 8px 20px;
    text-align: center;
}

.score-title{
    font-size: 11px;
    color: hsl(229, 64%, 46%);
    font-weight: bold;
}

.score-number{
    font-size: 40px;
    color: hsl(229, 25%, 31%); 
    font-weight: bold;
}

.game-container{
    position: relative;
    width: 280px;
    height: 280px;
    margin: 100px auto 0 auto;
}

.game-img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-img2{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.triangle{
    display: block;
    height: 190px;
    width: 190px;
    max-width: 100%;
}

.pentagon{
    display: block;
    height: auto;
    width: 200px;
    max-width: 100%;
    padding: 0 5%;
}

.choice{
    background-color: white;
    border-top: 4px solid hsl(0, 0%, 73%);
    border-radius: 50%;
    padding: 18px;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.choice:hover{
    transform: scale(1.05);
}

.choice2{
    background-color: white;
    border-top: 4px solid hsl(0, 0%, 73%);
    border-radius: 50%;
    padding: 20px;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.choice2:hover{
    transform: scale(1.05);
}

.paper{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(229, 64%, 46%);
    background-color: hsl(230, 89%, 62%);
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
}

.paper-img{
    max-width: 100%;
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.rock{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(347, 75%, 35%);
    background-color: hsl(349, 71%, 52%);
    cursor: pointer;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.rock-img{
    max-width: 100%;
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.scissors{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(28, 76%, 44%);
    background-color: hsl(39, 89%, 49%);
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}

.scissors-img{
    max-width: 100%;
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* Bonus Styles */
.scissor3{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    width: 50px;
    height: 50px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(28, 76%, 44%);
    background-color: hsl(39, 89%, 49%);
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 35%;
}

.spock{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    width: 50px;
    height: 50px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(194, 58%, 42%);
    background-color: hsl(189, 59%, 53%);
    cursor: pointer;
    position: absolute;
    top: 25%;
    left: 0;
}

.spock-img{
    max-width: 100%;
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.paper3{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    width: 50px;
    height: 50px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(229, 64%, 46%);
    background-color: hsl(230, 89%, 62%);
    cursor: pointer;
    position: absolute;
    top: 25%;
    right: 0;
}

.lizard{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    width: 50px;
    height: 50px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(261, 51%, 44%);
    background-color: hsl(261, 73%, 60%);
    cursor: pointer;
    position: absolute;
    bottom: 0;
    left: 12%;
}

.lizard-img{
    max-width: 100%;
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.rock3{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    width: 50px;
    height: 50px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(347, 75%, 35%);
    background-color: hsl(349, 71%, 52%);
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 12%;
}

.btn{
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.rules-btn{
    background-color: transparent;
    border: 1px solid white;
    border-radius: 8px;
    color: white;
    padding: 10px 35px;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rules-btn:hover{
    background-color: white;
    color: hsl(229, 25%, 31%);
}

.game-container2{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 110px 25px 0 25px;
    gap: 30px;
    align-items: center;
}

.rock2{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(347, 75%, 35%);
    background-color: hsl(349, 71%, 52%);
    cursor: pointer;
}

.paper2{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(229, 64%, 46%);
    background-color: hsl(230, 89%, 62%);
    cursor: pointer;
}

.scissors2{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(28, 76%, 44%);
    background-color: hsl(39, 89%, 49%);
    cursor: pointer;
}

.lizard2{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(261, 51%, 44%);
    background-color: hsl(261, 73%, 60%);
    cursor: pointer;
}

.spock2{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    border-bottom: 4px solid hsl(194, 58%, 42%);
    background-color: hsl(189, 59%, 53%);
    cursor: pointer;
}

.blank{
    background-color: hsl(214, 83%, 14%);
    border-radius: 50%;
    padding: 24px 26px;
    width: 55px;
    height: 55px;
    max-width: 100%;
}

.highlight{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px 20px 0 20px;
    align-items: center;
}

.highlight h4{
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding-left: 30px;
}

.again-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.again-container h1{
    color: white;
    font-size: 38px;
    margin-bottom: 0;
}

.play-again{
    background-color: white;
    border: none;
    border-radius: 8px;
    color: hsl(229, 25%, 31%);
    padding: 15px 52px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-again:hover{
    color: hsl(349, 71%, 52%);
}

.modal-content{
    display: flex;
    flex-direction: column;
    background-color: white;
    align-items: center;
    text-align: center;
    gap: 90px;
    padding: 40px;
    border-radius: 8px;
}

.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex !important;
}

.close-btn {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

.rules-img{
    max-width: 100%;
    width: 300px;
    height: auto;
    display: block;
    cursor: pointer;
}

.mobile-version{
    display: block;
}

.desktop-version{
    display: none;
}

/* ========== SECTION MANAGEMENT ========== */
section:not(.modal2) {
    display: none;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

section.active {
    display: block;
    opacity: 1;
}

section.modal2 {
    display: block;
    position: relative;
    z-index: 999;
    opacity: 1;
}

/* ========== RIPPLE EFFECT FOR LOADING & WINNER ========== */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4),
                    0 0 0 20px rgba(255, 255, 255, 0.4),
                    0 0 0 40px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.4),
                    0 0 0 40px rgba(255, 255, 255, 0.4),
                    0 0 0 60px rgba(255, 255, 255, 0);
    }
}

.blank-state.loading {
    animation: ripple 1.5s infinite;
    border-radius: 50%;
}

.winner-glow {
    position: relative;
    animation: ripple 1.5s infinite;
}

/* ========== ZOOM ANIMATION FOR WIN/LOSE ========== */
@keyframes zoomSlam {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.again-container h1 {
    animation: zoomSlam 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.again-container .btn2 {
    animation: zoomSlam 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards;
}

/* ========== COMPUTER CHOICE ZOOM IN ANIMATION ========== */
@keyframes computerChoiceZoom {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.computer-choice-animate {
    animation: computerChoiceZoom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========== FADE IN ANIMATION ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}


@media (min-width: 1024px){

.mobile-version{
    display: none;
}

.desktop-version{
    display: block;
}

header{
    max-width: 512px;
    margin: 30px auto 0 auto;
}

.btn{
    justify-content: right;
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    transform: none;
}

.game-container2{
    max-width: 512px;
    margin: 20px auto 0 auto;
    align-items: center;
}

.highlight{
    max-width: 512px;
    margin: 50px auto 0 auto;
}

.highlight h4{
    padding-left: 15px;
}

.again-container{
    margin: 0;
    padding: 0;
}

.again-container h1{
    font-size: 30px;
    margin: auto 0;
}

.play-again{
    padding: 10px 38px;
    font-size: 12px;
    margin-top: 5px;
}

.play-again:hover{
    background-color: hsl(0, 0%, 100%);
    color: hsl(349, 71%, 52%);
}

.modal2{
    max-width: 412px;
    margin: 0 auto;
}

.flex-x{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.modal-content{
    gap: 20px;
}

}

/* ========================================
   MULTIPLAYER STYLES
   ======================================== */

/* Mode Selection */
.mode-container {
    max-width: 500px;
    margin: 80px auto 0;
    padding: 0 25px;
    text-align: center;
}

.mode-title {
    color: white;
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.mode-btn {
    background: linear-gradient(135deg, hsl(230, 89%, 62%), hsl(229, 64%, 46%));
    border: none;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mode-btn.player-mode {
    background: linear-gradient(135deg, hsl(349, 71%, 52%), hsl(347, 75%, 35%));
}

.mode-icon {
    font-size: 48px;
}

.mode-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.mode-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.history-btn {
    background: transparent;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-btn:hover {
    background: white;
    color: hsl(229, 25%, 31%);
}

/* Lobby */
.lobby-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 0 25px;
}

.lobby-title {
    color: white;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.name-input-container {
    margin-bottom: 25px;
}

.name-input-container label {
    color: white;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.name-input-container input {
    width: 87%;
    padding: 12px 15px;
    border: 2px solid hsl(246, 11%, 37%);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.name-input-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.game-mode-selector {
    margin-bottom: 30px;
}

.game-mode-selector label {
    color: white;
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: bold;
}

.mode-toggle {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid hsl(246, 11%, 37%);
    border-radius: 8px;
    padding: 15px 10px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.toggle-btn.active {
    background: hsl(230, 89%, 62%);
    border-color: hsl(230, 89%, 62%);
}

.lobby-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lobby-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.create-btn {
    background: linear-gradient(135deg, hsl(349, 71%, 52%), hsl(347, 75%, 35%));
    color: white;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.join-container {
    display: flex;
    gap: 10px;
}

.join-container input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid hsl(246, 11%, 37%);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    text-transform: uppercase;
}

.join-btn {
    background: hsl(230, 89%, 62%);
    color: white;
}

.join-btn:hover {
    background: hsl(229, 64%, 46%);
}

.divider {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
}

.back-btn {
    background: transparent;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: white;
    color: hsl(229, 25%, 31%);
}

/* Waiting Room */
.waiting-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 0 25px;
    text-align: center;
}

.waiting-title {
    color: white;
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.game-code-display {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid hsl(230, 89%, 62%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.code-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.code-value {
    color: white;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 8px;
    font-family: monospace;
}

.share-options {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.share-btn {
    flex: 1;
    background: hsl(349, 71%, 52%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: hsl(347, 75%, 35%);
    transform: translateY(-2px);
}

.waiting-animation {
    margin: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.waiting-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.player-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.player-info strong {
    color: white;
}

/* Multiplayer Gameplay */
.mp-scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 25px;
}

.mp-player {
    text-align: center;
}

.player-name {
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}

.player-score {
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.mp-vs {
    text-align: center;
}

.vs-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.target {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.mp-game-area {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 25px;
}

.mp-choice-display {
    text-align: center;
}

.mp-instruction {
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
}

.mp-choices {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mp-choices.bonus-choices .game-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.mp-choice-btn {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mp-choice-btn:hover {
    transform: scale(1.1);
}

.mp-status {
    text-align: center;
    margin-top: 30px;
}

#mp-status-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Chat */
.mp-chat-container {
    max-width: 600px;
    margin: 40px auto 20px;
    padding: 0 25px;
}

.chat-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
}

.chat-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chat-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 400px;
}

.chat-content.collapsed {
    max-height: 0;
}

.chat-messages {
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 80%;
}

.chat-message.system {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 100%;
    font-size: 12px;
}

.chat-message.my-message {
    background: hsl(230, 89%, 62%);
    color: white;
    align-self: flex-end;
}

.chat-message.opponent-message {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    align-self: flex-start;
}

.message-author {
    font-weight: bold;
    margin-right: 5px;
}

.message-emoji {
    font-size: 24px;
}

.quick-reactions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#chat-send {
    background: hsl(349, 71%, 52%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

#chat-send:hover {
    background: hsl(347, 75%, 35%);
}

/* Reaction Animations */
.reaction-animation {
    position: fixed;
    font-size: 60px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 2000;
}

.reaction-animation.my-reaction {
    bottom: 100px;
    right: 50px;
}

.reaction-animation.opponent-reaction {
    bottom: 100px;
    left: 50px;
}

.reaction-animation.show {
    opacity: 1;
    transform: translateY(-30px) scale(1.2);
}

/* Round Result */
.result-display {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 25px;
    text-align: center;
}

.result-choices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.result-player {
    text-align: center;
}

.result-label {
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
}

.choice-icon {
    font-size: 80px;
}

.result-vs {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.result-message {
    color: white;
    font-size: 36px;
    margin: 30px 0;
    letter-spacing: 2px;
}

.result-scores {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

.next-round-btn {
    background: hsl(349, 71%, 52%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-round-btn:hover {
    background: hsl(347, 75%, 35%);
    transform: translateY(-2px);
}

/* Match End */
.match-end-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 0 25px;
    text-align: center;
}

.match-end-title {
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.final-score {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.final-score p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.final-score h2 {
    color: white;
    font-size: 48px;
    margin: 0;
}

.match-end-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rematch-btn {
    background: hsl(349, 71%, 52%);
    color: white;
}

.rematch-btn:hover {
    background: hsl(347, 75%, 35%);
    transform: translateY(-2px);
}

.leave-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.leave-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.view-history-btn {
    background: transparent;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-history-btn:hover {
    background: white;
    color: hsl(229, 25%, 31%);
}

/* Game History */
.history-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 0 25px;
}

.history-title {
    color: white;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 5px;
}

.streak-display {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    line-height: 1.8;
}

.recent-matches-title {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
}

.recent-matches {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-item.win {
    border-left: 4px solid hsl(149, 71%, 52%);
}

.match-item.loss {
    border-left: 4px solid hsl(349, 71%, 52%);
}

.match-opponent {
    color: white;
    font-weight: bold;
}

.match-result {
    color: white;
    font-size: 14px;
}

.match-score {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.no-matches {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: hsl(349, 71%, 52%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .mode-options {
        gap: 15px;
    }
    
    .mode-btn {
        padding: 25px 15px;
    }
    
    .result-choices {
        gap: 20px;
    }
    
    .choice-icon {
        font-size: 60px;
    }
    
    .match-end-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .name-input-container input {
        width: 90%;
    }
}

@media (max-width: 1024){
    .name-input-container input {
        width: 100%;
    }

}