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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: black;
    color: white;
    overflow: hidden;
    height: 100vh;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    z-index: 10;
}

.time {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.caller-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
}

.caller-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    border: 5px solid white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
    background: white;
}

.caller-avatar.large {
    width: 220px;
    height: 220px;
}

.caller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caller-name {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.call-status {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: -0.3px;
}

.call-timer {
    font-size: 28px;
    font-weight: 300;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.5px;
}

.call-controls {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    width: 100%;
    padding: 0 20px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    width: 85px;
    height: 85px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.decline {
    background: #ff3b30;
    transform: rotate(135deg);
}

.control-btn.decline:hover {
    background: #ff453a;
    transform: rotate(135deg) scale(1.05);
}

.control-btn.answer {
    background: #34c759;
    transform: rotate(315deg);
}

.control-btn.answer:hover {
    background: #30d158;
    transform: rotate(315deg) scale(1.05);
}

.control-btn.end {
    background: #ff3b30;
}

.control-btn.end:hover {
    background: #ff453a;
}

.btn-icon {
    font-size: 28px;
    margin-bottom: 0;
    transform: rotate(-135deg);
}

.control-btn.answer .btn-icon,
.control-btn.decline .btn-icon {
    font-size: 32px;
    transform: rotate(0deg);
}

.btn-text {
    font-size: 12px;
    font-weight: 500;
}

.call-content {
    flex: 1;
    width: 100%;
    max-width: 400px;
    overflow-y: auto;
    padding: 20px;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.4;
    animation: slideIn 0.3s ease;
}

.message.caller {
    background: rgba(255, 255, 255, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: rgba(76, 175, 80, 0.8);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.end-content {
    text-align: center;
    padding: 40px 20px;
}

.end-content h1 {
    font-size: 28px;
    margin: 20px 0;
}

.call-duration {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.fortune-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0 30px;
    font-size: 16px;
    line-height: 1.8;
    backdrop-filter: blur(10px);
    white-space: pre-line;
    text-align: left;
}

.primary-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.primary-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

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

@media (max-width: 480px) {
    .time {
        font-size: 16px;
    }
    
    .caller-avatar {
        width: 180px;
        height: 180px;
    }
    
    .caller-name {
        font-size: 28px;
    }
    
    .call-status {
        font-size: 16px;
    }
    
    .call-timer {
        font-size: 24px;
    }
    
    .call-controls {
        gap: 50px;
        margin-bottom: 40px;
    }
    
    .control-btn {
        width: 80px;
        height: 80px;
    }
    
    .btn-icon {
        font-size: 26px;
    }
    
    .control-btn.answer .btn-icon,
    .control-btn.decline .btn-icon {
        font-size: 28px;
    }
    
    .message {
        font-size: 14px;
        max-width: 80%;
    }
}