* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #151520;
    padding: 24px;
}

.game-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-stage > .home-container,
.game-stage > .dashboard-container,
.game-stage > .resolve-turn-container {
    width: min(1200px, 90vw);
    height: 85vh;
}

.home-container {
    position: relative;
    background: #1f1f2a url("./images/desk_background.png") center bottom / cover no-repeat;
    border-radius: 10px;
    overflow: hidden;
}

.home-laptop {
    position: absolute;
    width: 35%;
    height: auto;
    left: 50%;
    top: 35%;
    transform: translateX(-50%);
}

.home-laptop-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.home-phone {
    position: absolute;
    width: 12%;
    height: auto;
    left: 15%;
    top: 65%;
    opacity: 1;
    transition: opacity 220ms ease-in;
    cursor: pointer;
}

.play-again-btn {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    border: 0;
    border-radius: 10px;
    padding: 14px 28px;
    background: #f05a5b;
    color: #151520;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    z-index: 3;
}

.play-again-btn:hover {
    filter: brightness(1.06);
}

.is-hidden {
    display: none !important;
}

.phone-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    padding: 24px;
}


.phone-container {
    height: 90%;
    width: calc(90% * 0.3);
    margin: auto;
    background: #272730;
    border: 0;
    border-radius: 24px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.phone-close-btn {
    position:absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f05a5b;
    color: #151520;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-bar {
    width: 30%;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #151520;
}

.phone-screen {
    flex: 1;
    border-radius: 18px;
    background: #f3e5ce;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.message-container {
    border-radius: 16px;
    background: #151520;
    padding: 12px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-name {
    color: #f05a5b;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.message-text {
    color: #f3e5ce;
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.4;
}

.message-attachments {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(243, 229, 206, 0.12);
    color: #f3e5ce;
    font-size: 0.95rem;
    line-height: 1.3;
}

.message-attachment-icon {
    color: #dfb85a;
    font-size: 1rem;
    flex-shrink: 0;
}

.phone-screen-close-btn {
    margin-top: auto;
    align-self: center;
    border: 0;
    border-radius: 8px;
    padding: 8px 20px;
    background: #f05a5b;
    color: #151520;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.home-phone.is-vibrating {
    animation: phone-vibrate 60ms linear infinite;
}

@keyframes phone-vibrate {
    0% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(-5px);
    }
}
