/* --- Layout: Split Screen --- */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.left-panel {
    /* Fixed width for the handheld console area */
    flex: 0 0 450px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Move to top */
    padding-top: 25px;
    /* Matches horizontal margin */

    /* Background Pattern */
    background-color: #706b51;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.1) 10%, transparent 10%),
        radial-gradient(rgba(0, 0, 0, 0.1) 10%, transparent 10%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;

    border-right: 2px solid #111;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.right-panel {
    flex: 1;
    height: 100%;
    position: relative;
    background-color: #000;
}

/* --- Device Body (Legacy Updated) --- */
.device-body {
    background-color: var(--case-color);
    width: 400px;
    height: 680px;
    /* Increased from 660px to accommodate larger screen */
    border-radius: 40px;
    /* Big rounded corners */
    box-shadow:
        inset 5px 5px 15px rgba(255, 255, 255, 0.4),
        /* Highlight */
        inset -5px -5px 15px rgba(0, 0, 0, 0.2),
        /* Shadow */
        10px 15px 30px rgba(0, 0, 0, 0.5);
    /* Drop Shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    position: relative;

    /* Scratches / Texture */
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.02) 10px, rgba(0, 0, 0, 0.02) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.05) 15px, rgba(255, 255, 255, 0.05) 16px);

    transition: background-color 0.5s ease;
    transform: scale(0.9);
    /* Slight scale down to fit panel if needed */
}

.device-body.dark-ambience {
    background-color: #7a7345;
    /* Darkened case color */
    box-shadow:
        inset 5px 5px 15px rgba(0, 0, 0, 0.5),
        /* Darker highlight */
        inset -5px -5px 15px rgba(0, 0, 0, 0.6),
        /* Darker shadow */
        5px 10px 30px rgba(0, 0, 0, 0.8);
}

/* Speaker Slots (Top) */
.speaker-grill {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.speaker-grill span {
    width: 40px;
    height: 6px;
    background: #000;
    border-radius: 3px;
}

.brand-text {
    margin-bottom: 20px;
    font-family: sans-serif;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}