:root {
    --bg-purple: #1a1a2e;
    --card-beige: #f5f5dc;
    --lava-orange: #ff4500;
    --text-dark: #2d3436;
    --border-radius: 20px; /*  */
}

body {
    background-color: var(--bg-purple);
    font-family: 'Segoe UI', sans-serif; /* [cite: 9] */
    margin: 0;
    display: flex;
    height: 100vh;
    color: var(--text-dark);
}

/* Сетка для режима Landscape (2002 стиль) [cite: 11] */
@media (orientation: landscape) {
    #app-container {
        display: grid;
        grid-template-columns: 1fr 250px;
        width: 100%;
    }
    #online-list { display: block; border-left: 2px solid var(--text-dark); background: var(--card-beige); }
}

/* Вертикальный режим (стиль мессенджера) [cite: 11] */
@media (orientation: portrait) {
    #app-container { width: 100%; }
    #online-list { display: none; } /* Скрыто в сворачивающееся меню */
}

.chat-window {
    background: var(--card-beige);
    margin: 10px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.message-bubble {
    padding: 10px 15px;
    margin: 5px;
    border-radius: 12px;
    max-width: 80%;
    background: #e9e9d0;
}

.btn-nintendo {
    min-height: 48px; /* [cite: 10] */
    background: var(--lava-orange);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 15px var(--lava-orange); /* Эффект лавовой лампы */
    cursor: pointer;
}

.btn-nintendo:disabled {
    filter: grayscale(1);
    opacity: 0.5;
}

/* Анимация прогресс-бара [cite: 6] */
#progress-bar {
    height: 4px;
    background: var(--lava-orange);
    width: 0%;
    transition: width 10s linear;
}
