body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 30px;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-attachment: fixed;
}

.veronica-font {
    font-family: 'Veronica Script', cursive;
}

.subtitle {
    font-size: 1.3em;
    color: #8b4513;
    margin-top: -10px;
    margin-bottom: 30px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

#login {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 480px;
    width: 90%;
    margin: 50px auto;
    animation: fadeInUp 0.8s ease;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#login h1 {
    color: #ff6b6b;
    margin-bottom: 5px;
    font-size: 3.5em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

#login input {
    width: 90%;
    padding: 18px;
    margin: 15px 0;
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    font-size: 1.05em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    letter-spacing: 0.5px;
}

#login input:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15), 0 8px 20px rgba(255, 107, 107, 0.2);
    background: #ffffff;
    transform: translateY(-2px);
}

#login button, #game button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#login button:hover, #game button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 154, 158, 0.5);
}

#game {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    width: 95%;
    margin: 40px auto;
    min-height: 80vh;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: visible;
}

#game h2 {
    color: #ff6b6b;
    border-bottom: 4px solid #ff6b6b;
    padding-bottom: 20px;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
}

#users {
    background: linear-gradient(135deg, #fff5f6 0%, #fff0f5 100%);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.1);
}

#userList {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#userList li {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.3);
    animation: slideIn 0.5s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9em;
}

#gameInfo {
    background: linear-gradient(135deg, #fff5f6 0%, #fff0f5 100%);
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 107, 107, 0.2);
    position: relative;
    z-index: 1;
}

#actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#result {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    position: relative;
    z-index: 1;
}

#messageArea {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

#actions button {
    flex: 1;
    min-width: 120px;
}

#truthBtn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

#dareBtn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

#responseSection {
    margin-top: 50px;
    padding: 0px;
    background: linear-gradient(135deg, #fff5f6 0%, #fff0f5 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 2;
    clear: both;
    box-sizing: border-box;
    overflow: hidden;
}

#responseSection textarea {
    width: 100%;
    min-height: 120px;
    padding: 18px;
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    margin-bottom: 20px;
    resize: vertical;
    font-size: 1.05em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #fafafa;
}

#responseSection textarea:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.buttons-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    flex-direction: row;
    justify-content: center;
}

.buttons-container button {
    flex: 0 1 auto;
    min-width: 140px;
    max-width: 200px;
    padding: 12px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: normal;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.3);
    text-align: center;
    line-height: 1.2;
    height: auto;
    min-height: 44px;
}

.buttons-container button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
}

#toggleHistoryBtn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.3);
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    height: auto;
    min-height: 44px;
}

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

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@media (max-width: 600px) {
    body {
        padding: 20px;
    }
    
    #login {
        padding: 40px;
        margin: 40px auto;
        width: 95%;
    }
    
    #login h1 {
        font-size: 3em;
    }
    
    .subtitle {
        font-size: 1.3em;
        margin-top: -10px;
        margin-bottom: 30px;
    }
    
    #login input {
        padding: 15px;
        margin: 12px 0;
        font-size: 1em;
    }
    
    #login button {
        padding: 15px 30px;
        font-size: 1em;
        font-weight: 600;
        width: 100%;
    }
    
    #game {
        padding: 30px;
        margin: 30px auto;
        width: 95%;
        min-height: 80vh;
    }
    
    #game h2 {
        font-size: 1.8em;
        padding-bottom: 15px;
    }
    
    #users {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    #userList {
        gap: 10px;
    }
    
    #userList li {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    #gameInfo {
        padding: 25px;
        margin-top: 25px;
    }
    
    #actions {
        flex-direction: column;
        gap: 10px;
    }
    
    #actions button {
        width: 100%;
        padding: 15px 30px;
        font-size: 1em;
        font-weight: 600;
    }
    
    #responseSection {
        margin-top: 50px;
        padding: 0px;
        background: linear-gradient(135deg, #fff5f6 0%, #fff0f5 100%);
        border-radius: 20px;
        border: 2px solid rgba(255, 107, 107, 0.2);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
        z-index: 2;
        clear: both;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    #responseSection textarea {
        min-height: 120px;
        padding: 15px;
        font-size: 1em;
        width: 100%;
        box-sizing: border-box;
        margin: 15px;
    }
    
    .buttons-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .buttons-container button {
        flex: 0 1 auto;
        min-width: 120px;
        max-width: 160px;
        padding: 10px 12px;
        font-size: 0.75em;
        font-weight: 700;
        white-space: normal;
        letter-spacing: 0.3px;
        text-align: center;
        line-height: 1.2;
        height: auto;
        min-height: 40px;
    }
    
    #approvalSection {
        padding: 20px;
        margin-top: 25px;
    }
    
    .vote-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .vote-buttons button {
        flex: 1;
        min-width: 140px;
        padding: 12px 20px;
        font-size: 0.95em;
        font-weight: 600;
    }
    
    #actionHistory {
        padding: 20px;
        margin-top: 25px;
    }
    
    .vote-status {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    font-weight: 600;
    color: #ff6b6b;
    }
    
    .voters-list li {
        font-size: 1em;
        padding: 5px 10px;
    }
}

#actionHistory {
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f6 0%, #fff0f5 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    position: relative;
    z-index: 1;
}

#historyList {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

#historyList li {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    animation: fadeIn 0.3s ease;
}

.vote-status {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    font-weight: 600;
    color: #ff6b6b;
}

.voters-list {
    list-style: none;
    padding: 0;
}

.voters-list li {
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 5px;
}

.vote-approve {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-weight: 600;
}

.vote-reject {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    font-weight: 600;
}

/* Video Call Styles */
#videoContainer {
    background: linear-gradient(135deg, #fff5f6 0%, #fff0f5 100%);
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

#videoGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#localVideoContainer, #remoteVideoContainer {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 2px solid;
}

#localVideoContainer {
    border-color: #ff2a6d;
}

#remoteVideoContainer {
    border-color: #444;
}

#localVideoContainer.active, #remoteVideoContainer.active {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

#videoControls button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

#videoControls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
}

#startVideoBtn {
    background: linear-gradient(135deg, #ff2a6d 0%, #ff6b9d 100%) !important;
    font-size: 14px;
    font-weight: 700;
}

#endCallBtn {
    background: linear-gradient(135deg, #ff1744 0%, #ff5252 100%) !important;
}

/* Mobile: Stack vertically */
@media (max-width: 600px) {
    #videoContainer {
        padding: 0px;
        margin-top: 15px;
    }
    
    #videoGrid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    #localVideoContainer, #remoteVideoContainer {
        aspect-ratio: 16/9 !important;
        max-height: 250px;
    }
    
    #videoControls {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    #videoControls button {
        width: 80% !important;
        font-size: 12px !important;
        padding: 10px 0px !important;
        margin: 0 auto !important;
    }
    
    #videoStatus {
        flex-direction: column !important;
        gap: 5px !important;
        text-align: center;
    }
    
    #waitingOverlay {
        padding: 15px !important;
        font-size: 12px !important;
    }
}

/* Desktop: Side by side */
@media (min-width: 601px) {
    #videoGrid {
        grid-template-columns: 1fr 1fr !important;
    }
}