/* Kolobok Profile Room */
#profile-modal {
    --room-accent: var(--primary);
    --room-glow: rgba(255, 209, 102, .18);
}

body.theme-light #profile-modal {
    --room-glow: rgba(233, 165, 45, .12);
}

body.theme-neon #profile-modal {
    --room-accent: #ed61ff;
    --room-glow: rgba(237, 97, 255, .22);
}

#profile-modal .modal-content {
    position: relative;
    overflow-x: hidden;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 50% 0%, var(--room-glow), transparent 55%),
        var(--bg-page);
    color: var(--text-main);
}

#profile-modal .profile-header {
    position: relative;
    padding: 22px 12px 18px;
    border-radius: 22px;
    background: linear-gradient(
        160deg,
        var(--room-glow),
        transparent 75%
    );
}

#profile-modal .profile-avatar-wrapper {
    filter: drop-shadow(0 0 14px var(--room-glow));
    transition: transform .3s ease, filter .3s ease;
}

#profile-modal .profile-avatar-wrapper:active {
    transform: scale(.96);
}

#profile-modal #profile-name {
    color: var(--text-main);
    text-shadow: 0 0 15px var(--room-glow);
}

#profile-modal .invite-btn {
    transition: transform .2s ease, filter .2s ease;
}

#profile-modal .invite-btn:active {
    transform: scale(.97);
}

#profile-modal .profile-tabs {
    padding: 6px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

#profile-modal .p-tab {
    border-radius: 13px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

#profile-modal .p-tab.active {
    background: var(--room-accent);
    color: #101522;
    box-shadow: 0 4px 18px var(--room-glow);
}

#profile-modal .p-content.active {
    animation: roomReveal .3s ease both;
}

#profile-modal .winter-setting {
    border-radius: 17px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

#profile-modal .theme-btn {
    transition: transform .25s ease, box-shadow .25s ease;
}

#profile-modal .theme-btn.active {
    transform: translateY(-3px);
    box-shadow: 0 0 18px var(--room-glow);
}

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

@media (prefers-reduced-motion: reduce) {
    #profile-modal .p-content.active {
        animation: none;
    }
}

/* Profile Room V2 — compact layout */
#profile-modal .profile-header {
    padding: 8px 10px 12px;
}

#profile-modal .profile-avatar-wrapper {
    margin-bottom: 8px;
}

#profile-modal .nick-edit-container {
    margin-bottom: 10px;
}

#profile-modal .profile-tabs {
    margin-top: 10px;
}

#profile-modal .themes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

#profile-modal .theme-btn {
    width: 100%;
    min-width: 0;
    height: 76px;
    margin: 0;
    padding: 6px 2px;
    font-size: 11px;
}

#profile-modal .profile-content {
    padding-top: 12px;
}

