* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

#welcome-banner {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    animation: gradient 8s ease infinite;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    max-width: 550px;
    margin: 80px auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-logo {
    font-size: 100px;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 10px 20px rgba(255, 107, 107, 0.5));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.1); }
}

.login-container h1 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: none;
    font-weight: 800;
    letter-spacing: -1px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    font-size: 1.2rem;
    font-weight: 300;
}

.fun-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 35px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fun-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 12px 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
}

.login-container input {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
}

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

.login-container input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3), 0 0 40px rgba(255, 107, 107, 0.1);
    transform: scale(1.02);
}

.lobby-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s ease-out;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.lobby-header h2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
}

.lobby-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.lobby-actions input {
    flex: 1;
    min-width: 250px;
    padding: 18px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
}

.lobby-actions input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.lobby-actions input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    transform: scale(1.02);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5), 0 0 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(72, 219, 251, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(72, 219, 251, 0.5), 0 0 20px rgba(72, 219, 251, 0.3);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.recent-rooms {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-rooms h3 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.room-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s ease-out;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.room-header h2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 800;
}

.room-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.players-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.players-area h3 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-item:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.player-item.is-me {
    border: 2px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.player-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.player-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 400;
}

.player-status.player-ready {
    color: #00d2d3;
    font-weight: 600;
}

.game-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-status {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cards-area {
    text-align: center;
}

.cards-area h3 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
}

.player-cards {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.card {
    width: 110px;
    height: 155px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
    animation: shine 1s ease-in-out;
}

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

.card:hover {
    transform: translateY(-15px) scale(1.08) rotateY(10deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
}

.card.selected {
    border-color: #ff6b6b;
    transform: translateY(-20px) scale(1.1);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.5), 0 0 30px rgba(255, 107, 107, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 20px 40px rgba(255, 107, 107, 0.5), 0 0 30px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 25px 50px rgba(255, 107, 107, 0.7), 0 0 40px rgba(255, 107, 107, 0.5); }
}

.card.red {
    color: #ff6b6b;
}

.card.black {
    color: #2d3436;
}

.card-suit {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-value {
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selection-area {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-area p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 18px;
    font-size: 1.15rem;
    font-weight: 400;
}

.selection-area button {
    margin: 8px;
}

.waiting-area {
    text-align: center;
    padding: 50px 25px;
}

.waiting-area p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 400;
}

.vote-area {
    text-align: center;
    padding: 25px;
}

.vote-area h3 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
}

#vote-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-option:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.vote-option-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-option-name {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.vote-option-votes {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 1.1rem;
}

.vote-btn {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.4);
}

.vote-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(72, 219, 251, 0.5);
}

.vote-btn:disabled {
    background: #636e72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chat-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-area h3 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-message {
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.chat-message .sender {
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.chat-message .content {
    color: white;
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.5;
}

.chat-message .time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.chat-input {
    display: flex;
    gap: 12px;
}

.chat-input input {
    flex: 1;
    padding: 15px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
}

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

.chat-input input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.chat-input button {
    padding: 15px 25px;
    border-radius: 12px;
}

.history-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-area::-webkit-scrollbar {
    width: 8px;
}

.history-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.history-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.history-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.history-area h3 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.history-item strong {
    color: #ff6b6b;
    font-size: 1.15rem;
    font-weight: 700;
}

.history-winner {
    color: #00d2d3;
    font-weight: 700;
}

.history-score {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 1.1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    padding: 50px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.5s ease-out;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-content h2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.result-item.winner {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.result-player {
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.result-type {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.result-score {
    color: #00d2d3;
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-content button {
    width: 100%;
    margin-top: 25px;
}

@media (max-width: 768px) {
    #welcome-banner {
        font-size: 1rem;
        padding: 15px;
    }

    .login-container {
        padding: 35px 25px;
        margin: 30px 15px;
    }

    .login-container h1 {
        font-size: 2.2rem;
    }

    .game-logo {
        font-size: 70px;
    }

    .lobby-actions {
        flex-direction: column;
    }

    .lobby-actions input,
    .lobby-actions button {
        width: 100%;
    }

    .room-content {
        grid-template-columns: 1fr;
    }

    .chat-area {
        height: 350px;
    }

    .card {
        width: 85px;
        height: 120px;
    }

    .card-suit {
        font-size: 1.8rem;
    }

    .card-value {
        font-size: 1.4rem;
    }

    .modal-content {
        padding: 35px 25px;
    }

    .modal-content h2 {
        font-size: 1.8rem;
    }

    .player-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .player-name {
        font-size: 1rem;
    }

    .player-status {
        font-size: 0.85rem;
    }
}